Re: Posting values to a URL
| From: | dele454 | Date: | Wed, 20 May 2009 07:35:46 +0000 |
| Subject: | Re: Posting values to a URL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292801@lists.php.net to get a copy of this message | ||
Great stuff!! :) thanks Shawn. the http_parse_message does exactly what i
want. thanks a mil :)
Shawn McKenzie wrote:
>
> dele454 wrote:
>> hi,
>>
>> I am working on integrating a credit payment service from setcom. on
>> completion of transaction setcom sends bunch of post variables that my
>> script has to send back to setcom to get the details of the transaction
>> as
>> an xml file.
>>
>> I am using the pecl_http extension(http_post_fields) for posting these
>> variables but i have this reponse header info with the xml file that i
>> can't
>> get rid of. And the php doc isnt explicit enough on the use of this
>> function:
>>
>> Code:
>>
>> HTTP/1.1 200 OK Connection: close Date: Tue, 19 May 2009 21:56:02 GMT
>> Content-Type: text/html; charset=UTF-8 Server: Microsoft-IIS/6.0 P3P:
>> CP="IDC DSP CURa ADMa DEVa IVAa IVDa OUR DELa NOR LEG UNI PUR NAV INT
>> DEM"
>> X-Powered-By: ASP.NET Set-Cookie: CFID=142013;expires=Thu, 12-May-2039
>> 21:56:02 GMT;path=/ Set-Cookie: CFTOKEN=99801499;expires=Thu, 12-May-2039
>> 21:56:02 GMT;path=/ <?xml version='1.0'
>>
>> encoding='UTF-8'?><order_synchro><outcome><status>Complete</status>
>>
>>
>> i need to work with the xml file but the response header with the xml
>> file
>> is really not allowing me to.
>>
>> How can i set the http_post_field function not to return response
>> headers?
>>
>>
>> Help needed thanks in advance!
>>
>> -----
>> dee
>
> $response = http_parse_message(http_post_fields($url, $fields));
> $body = $response->body;
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
-----
dee
--
View this message in context: http://www.nabble.com/Posting-values-to-a-URL-tp23625856p23630494.html
Sent from the PHP - General mailing list archive at Nabble.com.