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

curl-and-php

Postfields question

From: Jesse Brede <jesse_at_skylist.net>
Date: Sun, 02 Mar 2003 23:03:36 -0600

What is the proper way to use the Postfields function from curl in php?

I have read that $POSTFIELDS needs to be an associative array. This has
not worked for me.
Such as
$POSTFIELDS = array ( "login" => "login_name", "password" => "xxxxxx",
"header" => "HF#%&=1324WER");
Putting my post variables in one long string seems to be the only way to
get this function to work correctly.
such as
$POSTFIELDS = "login=login_name&password=xxxxx&header=HF#%&=1324WER";

This being said, I have post variables that oddly enough have both & and =
symbols in them. Is there a php or curl function to make these variables
function correctly. I think if I could get the associative array working
everything would be fine. I have tried using single and double quotes.

The page that is receiving the postvariables normally post the variables
through a textarea form and takes the vars and puts them in a cgi variable
and then does the needed action.

Any help would be greatly appreciated.

Thanks,
Jesse

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-03-03