curl-users
Re: Problems downloading .asp files
Date: Thu, 19 Jul 2001 18:02:17 +0200
On Thu, Jul 19, 2001 at 08:10:36AM -0700, Ron Schoenberg wrote:
> My earlier post didn't tell the whole story. The way you suggest doing
> it was they way I was doing it at first. One difference though, I was using
> double quotes instead of single quotes as it is below. I tried single quotes
> but curl didn't seem to like it.
>
> Since I couldn't get it to work, I thought the -d parameter was the way to
> go especially since it worked for PCQuote. But when I tried, as you suggest,
>
> curl -o test.pge "http://www.cboe.com/MktQuote/DelayedQuotes.asp?TICKER=OEX&PAGE=1&ALL=2&bRunQuery=true"
>
> I get the following error message:
>
> <head><title>Object moved</title></head>
> <body><h1>Object Moved</h1>This object may be found here.</body>
Hi,
this is one of the sites that tests for the existence of one of the
common browsers at your end, so you've got pretend to be one of those.
Use the option -A to send a "User-Agent" header. The following should
work, for example:
curl -o test.pge -A "Mozilla/4.77" "http://www.cboe.com/MktQuote/DelayedQuotes.asp?TICKER=OEX&PAGE=1&ALL=2&bRunQuery=true"
The output you get seems to contain quite a lot of JavaScript, though,
so good luck in making sense of this (without a JavaScript interpreter)... ;)
-- Erdmut Pfeifer science+computing ag -- Bugs come in through open windows. Keep Windows shut! --Received on 2001-07-19