This is a discussion on "Handling http post with php" within the PHP Forum section. This forum, and the thread "Handling http post with php are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Handling http post with php
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Handling http post with php
We're posting data through http post to our customers. One of our customers want this integration working with php, but they are unable to receive the post.
The connection is not a form-type connection with several parameters (like fields from an html form), but rather a stream where the data is contained in the actual body of the request. In Java, we read this body like this:
Can this be solved with php as well? Regards Marius Waldal |
|
|
|
#2
|
|||
|
|||
|
SOLVED
It seems we solved it in a very simple way! The actual body of the post is contained in
$GLOBALS["HTTP_RAW_POST_DATA"]; This variable contains the XML we sent through the connection, so by only getting the contents here, we accomplish what we wanted. Marius Waldal |
|
#3
|
|||
|
|||
|
I'm glad you sorted it out! I actually put off answering this thread until this morning thinking it would be a real brainteaser!
|
![]() |
| Tags |
| handling, http, post, php |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| http post xml string and binary file in multipart message | pezkel | Classic ASP | 0 | Jun 10th, 2007 08:12 |
| Php Image handling | Accurax | PHP Forum | 10 | Feb 27th, 2007 23:06 |
| how to send xml file through http post or get | camarun20 | Other Programming Languages | 5 | Aug 10th, 2006 15:22 |
| Form handling | Tim356 | PHP Forum | 2 | Feb 28th, 2005 23:55 |