CURL - how to get URL of returned page?

From: Date: Mon, 08 Oct 2007 18:37:00 +0000
Subject: CURL - how to get URL of returned page?
Groups: php.general 
Request: Send a blank email to php-general+get-262928@lists.php.net to get a copy of this message
Is there a way to get the URL of the page that is returned when using Curl? If I look at CURLINFO_EFFECTIVE_URL value from the return of curlget_info(), all I see is the URL I requested, not the one that is returned. I am trying to write an URL checking script against a site that may return a page other than the one you requested without it being seen as a 302 redirect status. Even though my situation is somewhat out of the norm, I would imagine there are cases where people would want to see the URL with a 302 status. Am I missing something? Does anyone have any suggestions for me? Thanks, Marianne

« previous php.general (#262928) next »