Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8107
| From | bill <william@TechServSys.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Passing complex data back when using cURL |
| Date | 2013-01-20 15:01 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <kdhifb$o8b$1@speranza.aioe.org> (permalink) |
| References | <kdhhap$l9f$1@speranza.aioe.org> <kdhi5u$gd5$1@dont-email.me> |
On 1/20/2013 2:56 PM, Jerry Stuckle wrote: > On 1/20/2013 2:42 PM, bill wrote: >> I need to take an array that contains arrays and pass it back >> to 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 >> addresses. >> >> I want to have the data back in an array or arrays in the >> calling script. >> >> I looked at serialize, but fear that the null bytes would not >> transfer >> properly. >> >> 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 ? >> >> -bill > > 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. > Thanks Jerry, simple is good. bill
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
Passing complex data back when using cURL bill <william@TechServSys.com> - 2013-01-20 14:42 -0500
Re: Passing complex data back when using cURL Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-20 14:56 -0500
Re: Passing complex data back when using cURL bill <william@TechServSys.com> - 2013-01-20 15:01 -0500
csiph-web