download button - how to get file with mechanize

Z

zak

hi,

i'm having problems to access the content of a (csv-)file behind a
download-button inside a form:

<form>
....
<input type="submit" class="ButtonDownload ButtonRechts" title="Daten
herunterladen" id="ctl00_cphContent_btnDownload" value="Download"
name="ctl00$cphContent$btnDownload">
....
</form>

any idea how to read or download the file?
form.click_button(form.button_with('ctl00$cphContent
$btnDownload')).body
apparently yields the first line of the file?!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top