DZ,
In that case, the URL of the file download is then the URL that your
form submits to (i.e. the form's action attribute value in the HTML
source code, or in javascript if javascript is instead used to submit
the form). Other than looking through the source code, an HTTP traffic
sniffer can also help you sniff out the form submission URL as well.
However, this URL is not accessed as a normal HTTP GET request (that
you can type in browser to download). Instead it is an HTTP POST
request, which has same URL structure as a GET but you also send data
(i.e. the form submission of password and other data) along with the
URL request. You can't make a POST from browser without browser
extensions like the following for Firefox: RESTClient, HttpRequester,
Poster.
The HTTP response that the server sends back from the POST request
will then content the file to download. And if it's binary, you can't
really test it with the browser extensions mentioned above, so will
need to do so in code.
You can use code in Python to make the POST request, then save the
response you get back to file on disk.
There are two items that may make the download harder though:
* browser session and cookie - if the download that requires form
submission also requires a browser/server session, then you'll also
need to enable cookie support in Python code to allow the download to
work, else server will not allow download
* HTTPS secure access - if the form submission requires HTTPS, your
code needs to be able to handle that. I think Python HttpLib and
urllib should be ok, but not sure.