Re: [PHP] mime type over http post?
Thanks for your help everybody. I think I'll give the other company a link to this thread for the next person who asks for help. Ray On Wednesday 16 May 2007 6:57 pm, Oliver Block wrote: Hello Ray, 1. create the xml markup (dom) 2. open a connection to the 3rd party server (fsockopen) 3. send the header (fputs) 4. send the body (fputs) 5. close the connection Additional Questions? Best Regards, Oliver P.S: I just know better where to look for information:-) - original Nachricht Betreff: [PHP] mime type over http post? Gesendet: Mi, 16. Mai 2007 Von: Ray[EMAIL PROTECTED] Hello, I'm trying to write a web-based aplication that talks to a third party server. I'm having a hard time getting support from from them. the method of comunication (direct quote from their docs is: Data will be transferred to [server] via an HTTP POST operation using the MIME type, text/xml can anybody tell me what this means or how I do it using php? Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- original Nachricht Ende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mime type over http post?
Hello, I'm trying to write a web-based aplication that talks to a third party server. I'm having a hard time getting support from from them. the method of comunication (direct quote from their docs is: Data will be transferred to [server] via an HTTP POST operation using the MIME type, text/xml can anybody tell me what this means or how I do it using php? Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mime type over http post?
I'm having a hard time getting support from from them. the method of comunication (direct quote from their docs is: Data will be transferred to [server] via an HTTP POST operation using the MIME type, text/xml They want you to mimic what a browser would send to a web site when the user clicks a send button in a form. You use PHP to create the header for the page request, but you need to study HTTP documentation to understand what you need to send. It seems very unreasonable of them to have not supplied sample code. Good luck. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mime type over http post?
On Wednesday 16 May 2007 11:12 am, Stephen wrote: I'm having a hard time getting support from from them. the method of comunication (direct quote from their docs is: Data will be transferred to [server] via an HTTP POST operation using the MIME type, text/xml They want you to mimic what a browser would send to a web site when the user clicks a send button in a form. Hi, They have supplied very detailed docs for the XML, but the part that really throws me Is the mime type. Is this just another header? Thanks, Ray You use PHP to create the header for the page request, but you need to study HTTP documentation to understand what you need to send. It seems very unreasonable of them to have not supplied sample code. Good luck. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mime type over http post?
On 5/16/07, Ray [EMAIL PROTECTED] wrote: On Wednesday 16 May 2007 11:12 am, Stephen wrote: I'm having a hard time getting support from from them. the method of comunication (direct quote from their docs is: Data will be transferred to [server] via an HTTP POST operation using the MIME type, text/xml They want you to mimic what a browser would send to a web site when the user clicks a send button in a form. Hi, They have supplied very detailed docs for the XML, but the part that really throws me Is the mime type. Is this just another header? Thanks, Ray Yes, it is just another header, you could analyze the headers sent to and from with for example a network sniffer. Or you just connect to the protocol directly with programs like putty or telnet. Tijnema You use PHP to create the header for the page request, but you need to study HTTP documentation to understand what you need to send. It seems very unreasonable of them to have not supplied sample code. Good luck. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mime type over http post?
Hello Ray, 1. create the xml markup (dom) 2. open a connection to the 3rd party server (fsockopen) 3. send the header (fputs) 4. send the body (fputs) 5. close the connection Additional Questions? Best Regards, Oliver P.S: I just know better where to look for information:-) - original Nachricht Betreff: [PHP] mime type over http post? Gesendet: Mi, 16. Mai 2007 Von: Ray[EMAIL PROTECTED] Hello, I'm trying to write a web-based aplication that talks to a third party server. I'm having a hard time getting support from from them. the method of comunication (direct quote from their docs is: Data will be transferred to [server] via an HTTP POST operation using the MIME type, text/xml can anybody tell me what this means or how I do it using php? Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- original Nachricht Ende -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php