| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
RE: problem while redirecting with curl to an https
From: Lizet Peņa de Sola <lizet_at_krosslink.com>
Date: Tue, 11 May 2004 09:50:19 -0500
Hello Daniel, the drawing is perfectly clear, so my big mistake was
_______________________________________
Caribbean Property Corporation Ltd.
Miramar Trade Center
Edif Barcelona Ofic. 401
Miramar. Havana
www.caribbeanpropertycorp.com
Tel: 53-7-2047934
Fax: 53-7-2047934
_________________________________________
Note: This communication is strictly confidential and is intended solely
-----Original Message-----
On Fri, 7 May 2004, Lizet Peņa de Sola wrote:
Ok, I'll be a bit more lengthy and describe this with more details.
> The above code works fine, it passes all the POST parameters to the
I'd like to make a drawing of how I view this:
(A) Browser <=> (B) Your HTTP server <=> (C) The HTTPS server
You send a POST (using PHP/curl) from B to C, and the results from that
> however all relative uri in the second page are taking the first page
Of course, since the browser A is visiting the URL B, it has no idea
> The http reference doc rfc2616 (downloadable from w3.org) is pretty
Yes, if your site (B) includes a Location: header back to (A) while at
> works fine except for POST methods.
In HTTP, you can return Location: headers to all requests.
> I included these two lines:
... yes, and that makes you include a Location: header in the outgoing
> As a result of your reply to a previous post of mine on the Curl
> send the proper headers.
You said you wanted the browser to display a different URL, and one way
But that would also mean that the browser would leave your page/site.
> The documentation of curl is pretty scarce as in
I know, but I'm not responsible for any of that. When you use PHP/curl
I write libcurl, I don't do anything in PHP/curl. libcurl is about doing
> The doc found in http://curl.haxx.se/docs/httpscripting.html handles
That's my backyard. You can also read
> Please indicate me which other manuals should I read.
You need to understand the differences between A, B and C in my
--
Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-11
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info