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

curl-and-php

Re: How to make post field for this?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 30 Apr 2005 17:24:56 +0200 (CEST)

On Fri, 29 Apr 2005, Dexter wrote:

> I need to use "curl_setopt($ch, CURLOPT_POSTFIELDS, $data);"

> But i dont know how $data should be.

Save the HTML as a local file, edit it to make a GET and then use your browser
to send it if off (you can even change the target URL/domain to become
something that doesn't exist). Then you see in the address field of your
browser what you should be sending in the POST.

Another option is to use a network analyzer such as ethereal.

In this particular case, 'username=[name]' seems to be the only thing it
sends.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-04-30