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

curl-and-php

How to make post field for this?

From: Dexter <rtl_dex_at_yahoo.com>
Date: Fri, 29 Apr 2005 13:15:42 -0700 (PDT)

I need to use "curl_setopt($ch, CURLOPT_POSTFIELDS,
$data);"
But i dont know how $data should be.

The form looks like:

<form method="post"
action="alliances.dt?session=&amp;alliance=72582&amp;action=invite&amp;action2=send">
<div class="box_border">
<table border="0" cellpadding="3" cellspacing="1"
width="100%">
  <tbody><tr>
    <td class="box_header">Select a User</td>
  </tr>
  <tr>
    <td class="box_content"><input value=""
name="username" type="text"></td>
  </tr>
</tbody></table>
</div>
<div class="submitButtons">
  <input src="alliances.dt_files/submit.gif"
class="submitImg" type="image">
</div>
</form>

And my host:
Linux server1.xpress-host.net 2.4.25 #2 SMP Tue Apr 13
12:06:57 PDT 2004 i686
PHP Version 4.3.10
libcurl/7.13.2 OpenSSL/0.9.7a zlib/1.2.0.7

So, how $data should look like? Thx.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Received on 2005-04-29