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

curl-and-php

Re: Curl using PHP redirection

From: Stephen Pynenburg <spynenburg_at_gmail.com>
Date: Mon, 1 Jun 2009 20:06:13 -0400

You should set CURLOPT_HEADER to true, then parse the "Location" value out
of the returned HTTP headers.
-Stephen

On Mon, Jun 1, 2009 at 08: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
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-06-02