Yea, cURL can handle ASCII characters.  It been working for a couple of
years.  The first clipping is a sample PHP code.  The 2nd clipping is the
result of the data in ASCII characters, most of the data inside the CDATA is
removed for security reason.  The 3rd clipping is the result of a PHP array
when in use, again some data is removed for security reason also.  As you
can see from the array, it showed the PHP array stopped storing data when
the 'NUL' value is reached.

--snip--
      exec(CURL_CMD." -m 120 -u \"$XP_BASIC_AUTH\" -d \"$XML_REQ_STR\"
".$URL, $xp_result_array, $res_code);
-- snip--

--snip--
0000000 < ? x m l sp v e r s i o n = " 1

0000020 . 0 " sp s t a n d a l o n e = "

0000040 n o " ? > < N e t C o n n e c t

0000060 R e s p o n s e sp x m l n s = "

0000100 h t t p : / / w w w . e x p e r

0000120 i a n . c o m / N e t C o n n e

0000140 c t R e s p o n s e " > < C o m

0000160 p l e t i o n C o d e > 0 0 0 0

0000200 < / C o m p l e t i o n C o d e

0000220 > < H o s t R e s p o n s e > <

0000240 ! [ C D A T A [ cr lf cr lf cr lf cr lf

0000260 cr lf cr lf cr lf cr lf P A G E sp 1 sp sp

0000300 sp D A T E sp sp 8 - 0 7 - 2 0 0 3

0000320 sp sp T I M E sp sp 9 : 0 0 : 2 8 sp

0001540 sp sp sp sp cr lf cr lf sp E N D sp - - sp

0001560 E X P E R I A N sp C O D E cr lf nul

0001600 ] ] > < / H o s t R e s p o n s

0001620 e > < / N e t C o n n e c t R e

0001640 s p o n s e >

0001647

--snip--

--snip--
 Array ( [0] => 0000 [2] => [3] => [4] => [5] => [6] => [7] => [8] => PAGE 1
DATE 8-08-2003 TIME 16:32:35 V001 [22] => END -- EXPERIAN CODE )
--snip--

"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Scott Fletcher ([EMAIL PROTECTED]):
> > Yea, receiving the data in a serial stream through cURL from someplace
into
> > an array() by using exec() function.
>
> PHP is in general can handle binary strings, now if cURL can
> handle it is a different story.  Of course I'm stabbing in the dark
> at to what your problem is. Can you give an example of 'tripped up'
> is?
>
>
> Curt
> -- 
> "I used to think I was indecisive, but now I'm not so sure."



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to