curl-users
Re: Problems downloading .asp files
Date: Thu, 19 Jul 2001 20:43:31 -0700
You were right, it wanted the -A parameter. And you're right, I don't
have a way to run the Javascript. It appears that I will have to find
someone to show me how to do it if I want that data bad enough. There
must be a way to do it because my browser is doing it.
Thanks for all your help on this, by the way.
Ron Schoenberg
rons_at_cablespeed.com
At 06:02 PM 7/19/01 +0200, you wrote:
>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-20