Re: Re: How to send XML requests from PHP?

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

 




Michelle Konzack <linux4michelle@xxxxxxxxxxxxxxx> hat am 8. Mai 2012 um
20:25 geschrieben:

> Hello Jim Lucas,
>
> Am 2012-05-08 11:08:13, hacktest Du folgendes herunter:
> > Look into cURL http://php.net/curl
>
> I know "curl" but I do not know, HOW to send the XML stuff.

$ch  =  curl_init ();
curl_setopt ( $ch ,  CURLOPT_URL ,  "http://www.example.com/"; );


Look at http://de.php.net/manual/en/function.curl-setopt.php and set all
other options you need
- post method i guess
- post body with your xml
- ....



curl_exec ( $ch );
curl_close ( $ch );


I you have build up you try and have some code, come back to the list and
tell us what didn't work and what you expect it to do. Then we can help
you. Do have a documentation how the request should look like? Headers to
be sent? Post/Get Parameters? Protocol?

-- 
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