cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: following server redirections

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 21 Jun 2005 19:38:43 +0200 (CEST)

On Tue, 21 Jun 2005, C.Alvarez wrote:

> How does the redirection following is made ? Is this library able to follow
> 301 or 302 server redirections ?

The proper redir HTTP response code and a Location: header is what it takes.

That is how HTTP redirection is made.

> here the testing url I have tried
> http://www.shopzilla.fr/mkt.xpml?mkt_id=25925767

This returns a 200 code and no Location: header.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-06-21