cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Couldn't receive the body of the requested URL

From: Michael Wood <esiotrot_at_gmail.com>
Date: Tue, 2 Feb 2010 17:17:26 +0200

On 2 February 2010 15:43, Patrick Monnerat
<Patrick.Monnerat_at_datasphere.ch> wrote:
>
> Michael Wood wrote:
>
>> Indeed, the following prints the body:
>
>> curl http://tube.com/sports
>
> Tried it too: data <html><head>.....</head></html>     Stupid data

I didn't say it was useful-looking data, but data it was, nonetheless. :)

> The second time I submitted it, data are empty.

hmmm... I've just tried it again and the first time got the useless
data and 2nd, 3rd, 4th, etc. times got nothing. Strange.

> But using the --verbose flag, I saw the HTTP status is 302 found, so we
> need a redirection:
>
> curl -L http://tube.com/sports
>
> works far better: you even get "real" html data !

:)

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-02

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET