Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a JSP download link with code and passing appropriate values

Status
Not open for further replies.

baltman

Technical User
Mar 5, 2002
1,578
US
At the moment our workplace looses 10-20 man-hours a month downloading monthly reports from various sites so
I am trying to write some code that navigates through several web pages and gets them automatically and I'm stuck on one last piece of code.

I want to simulate a "click" on a link called "Download Now" which proves to be associated with as link like this:
"
A left-click brings up the download prompt saying the file is "Downloader from
I believe the relevent source code is below...I am interfacing with IE using Visual FoxPro and Visual Basic commands... what command/values might I need to be passing along?

<select name=&quot;monthd1&quot;>
<option value=&quot;39649@PRNT*PDF&quot;>PDF </option><option value=&quot;39649@PRNT*XLS&quot;>XLS </option>
<a href=&quot;#&quot; onClick=&quot;return monthlyDownloadNow(1)&quot;>Download Now</a>

I found some sytax that looked relevent:
response.sendRedirect(response.encodeURL;
&quot;custFavOverwrite.jsp&quot;))

Is that something like what I'd want to do? What other values/variables might I also need to change? Any help would be greatly appreciated.

Also, if anyone knows how I can automate the &quot;file download-save to disk&quot; popup that'd be great too.

Thanks!
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top