Page 1 of 1

Please suggest about get content

Posted: Tue Feb 25, 2003 8:59 pm
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

Posted: Tue Feb 25, 2003 9:25 pm
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.

Posted: Tue Feb 25, 2003 9:54 pm
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