[PHP] Opvragen rauwe POST body?

Pagina: 1
Acties:
  • 42 views sinds 30-01-2008

  • bartvb
  • Registratie: Oktober 1999
  • Laatst online: 26-08 16:09
Stel dat een script de volgende POST requests doet naar m'n site (voor het uitwisselen van XML gegevens):

code:
1
2
3
4
5
6
7
8
POST /pages/mypage.php HTTP/1.0  
Host: myhost.com  
Connection: close  
Content-Length: 467  
Content-Type: text/xml  
  
<?xml version = '1.0'?>  
<XML_message>Hallo wereld</XML_message>


Hoe krijg ik dan de body te pakken? De headers kan je opvragen met getallheaders() maar hoe pak je de rauwe content voor PHP er mee heeft zitten rommelen :?

Thanks in advance!

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

HTTP_RAW_POST_DATA :Y)

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Dit topic is gesloten.