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

curl-and-php

Re: help!

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 9 Apr 2003 20:53:52 +0200 (CEST)

On Wed, 9 Apr 2003, Siderite wrote:

> I need to post and get variables. How do I do that ? I mean: I need to
> post the original posted variables to a getit.php?Id=xxx.

If you pass the "variables" in the URL, then just use that URL in your
curl-using script (and skip the POST stuff). That makes it a GET request.

A POST request passes the "variables" in the body of the request, and not in
the URL.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
Received on 2003-04-09