| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
RE: problem while redirecting with curl to an https
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 7 May 2004 20:26:07 +0200 (CEST)
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 is
> however all relative uri in the second page are taking the first page domain
Of course, since the browser A is visiting the URL B, it has no idea that you
> 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 the
> 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 request
> As a result of your reply to a previous post of mine on the Curl discussion
You said you wanted the browser to display a different URL, and one way to
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 you use
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 the
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 "drawing". I
--
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-18
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info