Retrieve http body
am 16.02.2010 09:40:03 von unknown--00504502acad429b30047fb3afbb
Content-Type: text/plain; charset=UTF-8
hi,
Im getting a http post request from an application .
It has content-type of multipart/form-data
I want to retrieve the http header and body separately.
For retriving body I used
@file_get_contents('php://input');
but this will not capture any content .
Is there any way to capture body content
Request was:
POST /test.php HTTP/1.1
Host: localhost
Connection: keep-alive
User-Agent: java
Message-ID: o-qf5613.82.x545.69
LinkedID: y-f6-qf5609.93.x584.48@mmsc
From: 172.16.11.18@unknown
TransactionID: Mbuni-o-qf5613.82.x545.69
-To: 111
Message-Date: Mon, 15 Feb 2010 09:20:09 GMT
Received-Date: Mon, 15 Feb 2010 09:20:13 GMT
Content-Type: multipart/form-data;
boundary=_boundary_214096443_1266225618_R_n_bd424521165
MIME-Version: 1.0
Content-Length: 420
--_boundary_214096443_1266225618_R_n_bd424521165
Content-Disposition: form-data; name="fx"
true
--_boundary_214096443_1266225618_R_n_bd424521165
Content-Disposition: form-data; name="text[]"; filename="Jmg.txt"
Content-Type: text/plain; charset=utf-8
Jmg
--_boundary_214096443_1266225618_R_n_bd424521165
Content-Disposition: form-data; name="skip"
1
--_boundary_214096443_1266225618_R_n_bd424521165--
Thanks
--00504502acad429b30047fb3afbb--