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

curl-and-php

RE: Need help with POST field values that start with '@'

From: Kelvin Lim <milnivlek_at_gmail.com>
Date: Tue, 24 Apr 2007 21:01:12 +0800

letcla.noneoff_at_dfgh.net wrote:
> Hi,
> pretty new to this all CURL Thing.
> but I will suggest using the %25 which is url-encode = to @
> I could check it for you but it will take some time.

Thanks for your reply. Unfortunately, I believe CURL/PHP will automatically
url-encode the contents of CURLOPT_POSTFIELDS when it is set to an array
value. Thus it will url-encode the "%" character in "%40" when constructing
the POST body, which then means the other side will receive a "%40" string
after decoding, instead of "@".

Kelvin Lim

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-04-24