Re: accepting POST variables using CURL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, February 2, 2007 2:45 am, chetan rane wrote:
> i tried curl to access HTTPS pages but how do i get the POST variables
> been
> passed to me .
> here is teh exact thing which i want.
> i have a HTML page when i submit  the form i want ot read all teh POST
> data
> using HTTPS.
> I know its possible using CURL but dont exactly know how to do it

You've got things a bit backwards...

There's the CLIENT which curl represents.

There's the SERVER using HTTPS.

You use curl (CLIENT) to *send* POST data to the SERVER.

The SERVER responds with HTML output [*]

So you just send the POST data to the SERVER with curl, and read the
HTML response.

If you are also programming the SERVER side, the POST data in PHP is
just in $_POST array.  (Unless you've configured things oddly.)

[*] Okay, the request could be for a JPEG or PDF or something, and the
Content-type and all that could be sending out something whack...


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux