Forum Moderators: coopster

Message Too Old, No Replies

Reading HTTP Response

Reading HTTP Response

         

anand paranjape

8:51 pm on Mar 21, 2005 (gmt 0)

10+ Year Member



Hi,
I am designing website forms and once the user fill up the form it genrates the xml file. now these XML file is posted through XML request to another application server which saved the form data into it. and after successful submisson the application server sends the response.

This response is in XML format and it gives 2 main values:

1. Status message ( <status>Ok or Error</status>) and
2. submission id. of form ( <id>12126</id>)

Now , how to read the response from the server, status and id value. ( ok or error) as depening upon this value the thankyou message will be displayed.

Thankyou
~Anand

coopster

10:36 pm on Mar 28, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You could open your own socket and handle the request yourself that way or perhaps CURL, Client URL Library Functions [php.net] are an option for you?

mincklerstraat

12:50 am on Mar 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm probably not so likely to be up on HTTP headers for xml as coopster, but if you just want the raw HTTP headers you could look at the function apache_response_headers() [php.net].
If you use Microsoft IIS I'm afraid I won't be able to help on this one, it doesn't work for that server.