This is a discussion on CURL - how to get URL of returned page? within the PHP General forums, part of the PHP Programming Forums category; Is there a way to get the URL of the page that is returned when using Curl? If I look ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |