cURL
Your ad here would be seen by 100,000 unique vistors every month Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

RE: Effective URL different if CURLOPT_NOBODY is set to true

From: Lindsay Ohman <lindsay_at_smithandtinker.com>
Date: Tue, 17 Mar 2009 15:48:11 -0500

Sounds like a good plan - could you tell me how to do that? :) I
appreciate it - this is the first time I've used libcurl and am still
figuring it out. Thanks!

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Tuesday, March 17, 2009 11:41 AM
To: libcurl development
Subject: Re: Effective URL different if CURLOPT_NOBODY is set to true

On Tue, 17 Mar 2009, Lindsay Ohman wrote:

> When I try and retrieve the effective URL from one that is redirected,
but I
> do curlopt_nobody set to true - it returns a different effective URL
than
> one if I set nobody to false.

Then the server obviously is presenting you different Location: headers
depending on the request method. GET vs HEAD.

> Is that how it's supposed to work?

libcurl shows you what the server says. That's what it is supposed to
do.

> I need the one that is retrieved with nobody set to false, but I don't
want
> to retrieve the whole file. Can you help?

How about stopping the transfer immediately after the headers have been
received?

-- 
  / daniel.haxx.se
Received on 2009-03-17

These mail archives are generated by hypermail.

donate! Page updated March 10, 2009.
web site info

.NET component for file upload with ASP.NET