Forum Moderators: coopster

Message Too Old, No Replies

PHP HTTP headers

need help!

         

petra_bg

2:11 pm on Feb 24, 2005 (gmt 0)

10+ Year Member



I need to get the http entity body in PHP. Thanks for any help!

joebob

3:15 pm on Feb 24, 2005 (gmt 0)

10+ Year Member



I too am new to php and would like to put ads on a forum but have no idea how to add them to a php file.

Any help would be greatly appreciated.

Thanks in advance

Jb

jatar_k

6:20 pm on Feb 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld petra_bg

I am not totally sure what you mean to do. Could you maybe explain a little more about your scenario.

petra_bg

6:51 am on Feb 25, 2005 (gmt 0)

10+ Year Member



I have this:

POST /myscript.php HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
Accept-Language: bg
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Host: 192.168.0.1:8000
Content-Type: text/xml
Connection: Keep-Ali

<xml>
<node1>node1 value</node1>
</xml>

And I need to extract :

<xml>
<node1>node1 value</node1>
</xml>

from it.
Do you know how to do it?

coopster

2:01 pm on Feb 25, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You seem to be searching for the PHP DOM Functions [php.net].

petra_bg

3:29 pm on Feb 25, 2005 (gmt 0)

10+ Year Member



It's not what I need.
I have to make a script that is called that way.
I need to get and parse the body of the request.

In short, I need to get this:

<xml>
<node1>node1 value</node1>
</xml>

How could I get the body of the request?

Thank you.

gliff

5:21 pm on Feb 25, 2005 (gmt 0)

10+ Year Member



This might be what you're looking for

[liquidpulse.net...]

Although a better description of what you're trying to do or acomplish would be helpful. (*you* know what you're doing, but we don't (-:)

petra_bg

8:39 am on Feb 26, 2005 (gmt 0)

10+ Year Member



Thanks a lot! This was exactly what i was looking for! Really great hepl!