Re: Having problem sending XML over HTTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

on 12/14/2006 06:32 PM Nauman Akbar said the following:
> I picked up an example from Curl section on php.net. I am able to access the
> remote page fine with a custom header. Unfortunately, I am not able to
> retrieve the XML I am sending at the remote end. I have tried both
> $HTTP_RAW_POST_DATA and php://input but neither of them returns anything. I
> am putting my code below just in case anyone can point out the problem in
> there.

I don't think you need to wrap your XML in a multipart/mixed container.
Just send it as text/xml. That is how SOAP and other protocols work and
PHP can handle it.

You can also emulate submission of a form with files. That is more
complicated but works better with PHP as you do not need to tweak php.ini .

I use this HTTP client class that has either an example of sending a XML
  document like your want or using form submission emulation. Take a
look in particular at examples test_http_post.php and test_http_soap.php .

http://www.phpclasses.org/formsgeneration


-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux