Click to See Complete Forum and Search --> : File download using ASP


vlw
04-29-2003, 12:35 PM
I've posted this question on the CGI forum already, but just realized that maybe this should be a question on ASP instead.

I'm writing a winsock application that downloads data files from a website. The URL of the download page ends with .asp, so I figured that this should be done using ASP instead of CGI. When done manually, I go to the website and enter the name of the file I want in a box. A download dialog box then pops up, and I specify the location on my machine I want the file to go.

Two questions:

1) How can I automate this process? A query should be sent from my winsock application, right?

2) How do you figure out the correct query to send?

Any help on this is a greatly appreciated! I am totally new to web application programming.

Thanks in advance,

Victor

vlw
04-29-2003, 07:51 PM
What if no URL is shown when the download dialog box pops up? I tried right clicking on the box to see if there's a "Properties" tab that would show the URL. There wasn't.

Any suggestions?

vlw
04-30-2003, 01:42 AM
Right. No URL when the dialog box pops up. so I don't know what to do.

OK, here's what I tried. Please tell me why it doesn't work:

The URL, when I get the data (stock quote) manually, is the following:

http://quote.cboe.com/QuoteTable.asp?TICKER=dell&ALL=0

So in my application, after getting the socket to "quote.cboe.com", I sent the following CGI query:

"GET /QuoteTable.asp?TICKER=dell&ALL=0"

This didn't work and I was timed out. Can someone please tell me how to fix this? I'm totally new to CGI.

thanks in advance!

Victor