cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: How to know the FOLOWLOCATION redirected URL :)

From: Cortina Love <contact_at_livegirlslive.com>
Date: Wed, 16 Nov 2005 15:00:02 +0100

I called curl_getinfo before curl_exec...
 It works now, thanks a lot!! :)
 Best Regards,
Cortina Love
 On 11/16/05, Broekhuis,Robert R. <BROEKHRR_at_airproducts.com> wrote:
>
> Did you call curl_exec before trying the statement below?
>
> ------------------------------
> *From:* Snt [mailto:8322641_at_gmail.com]
> *Sent:* Wednesday, November 16, 2005 7:01 AM
> *To:* Broekhuis,Robert R.
> *Cc:* cortinalove_at_livegirlslive.com; curl with PHP
> *Subject:* Re: How to know the FOLOWLOCATION redirected URL :)
>
> No, it doesn't work.
> $info = curl_getinfo ($ch, CURLINFO_EFFECTIVE_URL);
>
> does not work...
>
> The url I am using is:
>
> http://www.nscash.com/mpa2/random.php?s=2&id=104205
>
> it redirects to:
>
> http://www.nsgalleries.com/hosted1/ns/gals/dasha3/index.php?id=104205
> Best Regards,
> Cortina Love
>
> On 11/16/05, Broekhuis,Robert R. <BROEKHRR_at_airproducts.com> wrote:
> >
> > If I understand your question correctly, I think you need something
> > like:
> > $newurl=curl_getinfo($ch,CURLINFO_EFFECTIVE_URL);
> > Rob
> >
> > ------------------------------
> > *From:* curl-and-php-bounces_at_cool.haxx.se [mailto:curl-and-php-bounces_at_cool.haxx.se]
> > *On Behalf Of *Cortina Love
> > *Sent:* Wednesday, November 16, 2005 4:28 AM
> > *To:* curl-and-php_at_cool.haxx.se
> > *Subject:* How to know the FOLOWLOCATION redirected URL :)
> >
> > Hi!
> > I was wondering if it is possible to know the FOLOWLOCATION redirected
> > URL in PHP.
> > Best Regards,
> > Cortina Love
> >
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-16