curl-and-php
Using a string starting with @ in a POST
Date: Fri, 01 Oct 2010 15:41:33 +0000
Hello everybody
i'm coding an application which use the twitpic api.
I have to send three postdata $var which are
key = my api key
message = a message (string)
media = @/file/to/upload
Great, but my message is often "@twitteruser here is the photo !"
(without "), and so curl try to find a file and return a
"failed creating formpost data"
I tried to urlencode and rawurlendode the $message var, it works, but
twitpic doesn't decode it correctly
Is there a way to pass a string starting with @ whithout having curl try to
process it as a file ?
(see what happen when using urlencode($message) :
http://twitpic.com/2tngrw
)
Thanks
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2010-10-01