CURL post variables 'corrupted'

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

CURL post variables 'corrupted'

Post by Parody »

I am sending a serialized, gzcompressed array via POST using CURL and the received variable has had slashes added, characters changed and some missing. I have replaced & and = to ensure it remains a single variable, but does anyone know how you can send absolutely anything via CURL?

Most of the problem is that gzcompressing gives out html characters and some obscure characters that CURL feels the need to add slashes to. If you have had this problem and wrote a function to get around this problem I would be extremely grateful if you could let me know how to resolve it.
Post Reply