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

2012-05-09 Thread ma...@behnke.biz


Michelle Konzack linux4miche...@tamay-dogan.net 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



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

2012-05-08 Thread Michelle Konzack
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.

The XML code is generated using a temp file for logging, which  mean,  I
can see any changes on the system...

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux
   Internet Service Provider, Cloud Computing
http://www.itsystems.tamay-dogan.net/

itsystems@tdnet Jabber  linux4miche...@jabber.ccc.de
Owner Michelle Konzack

Gewerbe Strasse 3   Tel office: +49-176-86004575
77694 Kehl  Tel mobil:  +49-177-9351947
Germany Tel mobil:  +33-6-61925193  (France)

USt-ID:  DE 278 049 239

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


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

2012-05-08 Thread Jim Lucas

On 05/08/2012 11:25 AM, Michelle Konzack wrote:

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.

The XML code is generated using a temp file for logging, which  mean,  I
can see any changes on the system...

Thanks, Greetings and nice Day/Evening
 Michelle Konzack



It is data, you send it in the data section of a post.  Typically you 
must also assign it to a variable as you would any other value that you 
are submitting.


What you should do is capture (using Firefox and viewing the headers) 
the communication that your browser would perform when submitting the 
data via FireFox.  Once you have that, you will then see how the data 
needs to be associated.


Sending post data via curl is a matter of formatting the data right and 
inserting it into the curl request.


--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

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