Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8105

Passing complex data back when using cURL

From bill <william@TechServSys.com>
Newsgroups comp.lang.php
Subject Passing complex data back when using cURL
Date 2013-01-20 14:42 -0500
Organization Aioe.org NNTP Server
Message-ID <kdhhap$l9f$1@speranza.aioe.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


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