CURL - how to get URL of returned page?

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-08-2007
Marianne Mason
 
Posts: n/a
Default CURL - how to get URL of returned page?

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0