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

curl-and-php

Re: problem with & sign.

From: piotr maksymiuk <piotrek_at_net-line.pl>
Date: Fri, 23 May 2003 14:10:07 +0200

> > its not a regular POST, because i do not send any variable-value pairs.
>
> POSTs are data. Any data, not just variable-value pairs.
>

omg... you're right :) i remember i tried postfields and it didn't work. now
it does :) but the '&' problem is still unresolved. i guess this gotta be
the receiver's fault.

> > the content of the request is xml code, which server receives and
parses.
> > as far as i know (am i wrong?) i can only accomplish it by using custom
> > request.
>
> That is the wrong way of doing it. The customrequest option only replaces
the
> actual request keyword (the 'GET' or 'POST'), so you'll get the path and
> HTTP/1.1 strings appended to your post, which most likely will confuse
your
> receiving end! ;-)

hm, i put whole http requests in customrequest, all headers, cookies and
such + post content, and it worked.
now i'm using postfields and it works okay too :)

> > so i guess i'll have to snoop the transmission (which i would start
with,
> > but can't ATM, so checking the mailing list :) ) to find out whether the
> > sign is sent right. and if it is, the problem is a receiver, which i
can't
> > check too :)
>
> If it isn't sent out, then you know that you don't pass the correct data
to
> curl.

noo.. the data is okay for sure, the only problem is with '&'.
i'll have to search for solution somewhere else, cause it appears not to be
the curl's fault.

thanks a lot for your help! :)

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-23