Hi Fellow Pythoners,<br><br>I'm trying to collect table data from an authenticated webpage (Tool) to which I have access.<br><br>I will have the required data after 'click'ing a submit button on the tool homepage.<br>
When I inspect the submit button i see <br><form action="/Tool/index.do" method="POST"><br><br>Thus the tool's homepage is of the form <a href="http://www.example.com/Tool">www.example.com/Tool</a> and on clicking the submit button the data I need will be at <a href="http://www.example.com/Tool/index.do">www.example.com/Tool/index.do</a><br>
<br>The problem that I'm running into is in my below code is giving me the source of homepage(<a href="http://www.example.com/Tool">www.example.com/Tool</a>) and not the of the submitted page(<a href="http://www.example.com/Tool/index.do">www.example.com/Tool/index.do</a>)<br>
<br>url="<a href="http://www.example.com/Tool/index.do">www.example.com/Tool/index.do</a>"<br>request = urllib2.Request(url, data, {'Authorization': "Basic " + base64.b64encode("%s:%s" % (username, password))})<br>
Response_Page=urllib2.urlopen(request).read()<br><br>Is there a way I can access the source of the submitted page?<br><br>PS: Sorry for laying out very tiny details on what I'm trying to do, I just wanted to explain myself clearly :)<br>
<br>Thanks in advance for your time on this one.<br><br>Warm Regards,<br>Abhi<br>