Re: [PHP] accepting POST variables using CURL
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Fri, 2 Feb 2007 19:34:40 -0600 (CST)
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?
.
Relevant Pages
- Re: How to do a post back when user press enter.
... It is hosted on a web server, ... the client browser, which is designed to read and interpret HTML. ... UI, via the event handler. ... (microsoft.public.dotnet.framework.aspnet) - Re: PHP-Yes, HTML-No --- Why?
... The .html signifies that the file contains HTML - and pretty ... A php script contains both HTML and PHP code so technically speaking it's not just HTML. ... The user is getting a file from your web server, an HTML file, and it has an extension of something other than HTML. ... I hope you weren't configuring them as per your personal likes and dislikes but instead were configuring them as per the customer requirements and for speed, ... (comp.lang.php) - Re: PHP-Yes, HTML-No --- Why?
... You are arguing to have ..html at the end of every URL even if the file contains PHP or another scripting language. ... By that very figure you are in the minority and I'd venture to guess the the number of people who really, really care about such trivial things such as yourself is probably closer to .1% in the real population. ... FTP requests are not HTTP. ... The point about MP3 files is that if you configure your web server to treat every file as potentially having dynamic content and that it should search through the entire file looking to determine exactly which language might be in use in the file and hand it off to the appropriate parser, interpreter or module then you are gonna have to contend with the fact that occasionally you're gonna be charging the web server with reading and parsing potentially huge files - all in the name of a foolish consistency. ... (comp.lang.php) - Re: How to do a post back when user press enter.
... > requested by a client browser, ... > by an ISAPI (Internet Server Application Programming Interface) ... > and interpret HTML. ... > to its process and UI, via the event handler. ... (microsoft.public.dotnet.framework.aspnet) - Problem with some Pages? - Re: More piccies
... >> in Firefox, Biffo. ... Yep, or to be more exact, what the *Browser* is seeing in the HTML ... the same Server, which just happened to have a single Character ... the Pages/Pics using BackSlashes or ForwardSlashes! ... (uk.people.silversurfers) |
|