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 21:10:43 +0200 (CEST)

On Wed, 9 Apr 2003, Siderite wrote:

> Arghhh, I know what POST and GET are. I need to do them both, though.
> if I am using "action=script.php?getvar=1" in html it works to send both
> get and post, right?

No, you can only use GET *or* POST. But you can of course use whatever URL
you want when you POST data. You can append "?getvar=1" just fine and then
POST data to that URL.

Basicly, POST is an extended GET with data passed-in as well. The URL syntax
is the same no matter which request you use.

-- 
 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