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

curl-and-php

problem with & sign.

From: piotr maksymiuk <piotrek_at_net-line.pl>
Date: Thu, 22 May 2003 16:46:28 +0200

hi,

got a problem while using CURLOPT_CUSTOMREQUEST and using & sign within my
request:

for example:

POST /epp HTTP/1.0
Host: somehost.com
Cookie: JSESSIONID=1A404F05290E260A0FD0E1E8E3533259
Content-Type: text/plain; charset=utf-8
Content-length: 203
Connection: close

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <epp>
        <name>john</name>
    </epp>

works great, but:

POST /epp HTTP/1.0
Host: somehost.com
Cookie: JSESSIONID=1A404F05290E260A0FD0E1E8E3533259
Content-Type: text/plain; charset=utf-8
Content-length: 209
Connection: close

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <epp>
        <name>john & son</name>
    </epp>

does not :<

so, everything worked fine till i found out that using '&' in my request
crashes it :< replacing it with '%26' is no good cause its treated as a
'%26' string and not a sign code.

is it curls fault? can i make it not to treat my request as url encoded or
sth like that?
what shall i do for the above to work?

greetz

--
pm
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Received on 2003-05-22