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

curl-and-php

Re: Curl using PHP redirection

From: Massimo Lombardo <unwiredbrain_at_gmail.com>
Date: Wed, 3 Jun 2009 12:09:36 +0200

Have you tried using curl_getinfo($ch, CURLINFO_EFFECTIVE_URL) ?

On Mon, Jun 1, 2009 at 14:17, Chandar.V.Rao <chandarvr_at_gmail.com> wrote:
> Hi
> Is it possible to get the url after i submit the authentication credentials.
> Because i am getting the same login page returned when i try to give curl
> command.
> generaly when i login from the browser to the interface if the credentials
> are wrong it returns to the login page with some query strings like
>
> http://ipadaddres/loginpage.hrml?authfail=0
> or
> http://ipadaddres/loginpage.hrml?authfail=1
> or
> http://ipadaddres/loginpage.hrml?authfail=2
> or
> http://ipadaddres/loginpage.hrml?authfail=3
>
> Is it possible to get this url so that i can pinpoint the validation error.
>
>
> --
> With Best Regards
> Chandar.V.Rao
> 9884045588/9003174152
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

-- 
Massimo Lombardo
Linux user #437712
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-06-03