Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Passing complex data back when using cURL
January 20, 2013, 7:42 pm
rate this thread
the script that asked for it using cURL. I have set
CURLOPT_RETURNTRANSFER to 1 so the data comes back to a variable
in the calling program.
The data is alphaneumeric and contains "@" as part of email
I want to have the data back in an array or arrays in the calling
I looked at serialize, but fear that the null bytes would not
I looked at json_encode/decode but wonder about the options.
What would be the best way to move the data from the server back
to the cURL client ?
Re: Passing complex data back when using cURL
Generally the best way would be to use json. You could also do
something like serialize the data and then base64 encode the data.
Other ways are possible also, but more complicated.
Remove the "x" from my email address
JDS Computer Training Corp.
- » define ('NL', "<br />"); can I define a constant var ?
- — Next thread in » PHP Scripting Forum