curl-library
CURLOPT_POSTREDIR and redirections
From: Rahul Rathi <rahul.rathi2005_at_gmail.com>
Date: Fri, 4 Sep 2009 11:14:44 +0530
Date: Fri, 4 Sep 2009 11:14:44 +0530
If i set the option CURLOPT_POSTREDIR, Curl will redirect the request to
other URL returned by 301 response.
Now, suppose that i made a request to URL xyz.com and its redirected to
abc.com on 301 response. For all next requests, if i set the same url
xyz.com using CURLOPT_URL option, will curl redirect on its own to abc.com ?
Or the calling application is expected to keep track that xyz.com is getting
redirected to abc.com ?
Thanks in advance.
Received on 2009-09-04