Please suggest about get content

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
abdun
Forum Newbie
Posts: 2
Joined: Tue Feb 25, 2003 8:59 pm
Location: TH

Please suggest about get content

Post by abdun »

Hi all

If my php script receive data from another script via http( METHOD POST).
How can i get content?
Please suggest.

This below is another scipt posted to my script:

POST http://foo.bar.com/status.php HTTP/1.1
Host: foo.bar.com
Cookie: Name=abc; Domain=.foo.bar; Path=/app-dir; \
JSESSIONID=123; VERSION=1
Content-Length: 11

900 Success


The content means "900 Success"


Regard,
Abdun
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

I am not entirely sure if you are using cookies or forms or both to submit data to PHP.

For forms, check this link viewtopic.php?t=511

Cookies are generally not a good idea to pass values from one page to the other since they could be disabled.

If I misunderstood you, please clarify.
User avatar
abdun
Forum Newbie
Posts: 2
Joined: Tue Feb 25, 2003 8:59 pm
Location: TH

Post by abdun »

I developed java application on mobile phone ( J2ME ).
Method POST occur from application on mobile phone,
when mobile phone install java application success ( download java app from wap ).


Regard,
Abdun
Post Reply