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:
[CODE]BufferedReader br = req.getReader(); //req is the incoming HttpServletRequest
String inputLine;
StringBuffer strBuffMessage = new StringBuffer();
while ((inputLine = br.readLine()) != null) {
strBuffMessage.append(inputLine);
} // while
br.close();
We don’t read any parameters; just the connection body itself.
Can this be solved with php as well?
Regards
Marius Waldal