cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 2 Feb 2010 13:46:35 +0100 (CET)

On Tue, 2 Feb 2010, debojyoti.pal_at_wipro.com wrote:

> I have written a very small program, which initialize a curl handle, set the
> URL http://tube.com/sports and then call curl_easy_perform() method. But in
> return it displays only the header part, but for body it is telling that
> "document has moved ....". But when I give the same URL to command line tool
> curl, it is giving all the body along with header.

That makes me suspect the server is acting differently due to differences in
the requests. For example, libcurl sends no user-agent field by default.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-02