accessing Java HTTP Request Object with php -
I am working in a PHP environment and want to get the Java HTTP Request object. It will be on the host website from an external source.
The object will be in this format:
POST / fail? Install = XXXXXX and msgType = authResult HTTP / 1.0 content-type: application / x-www-form-url; Charset = UTF-8 Host: www.worldpay.com Content-Length: 973 User-Agent: WJHRO / 1.0 (Java on the World HTTP Configurable Object) Area = New + Format + Area & amp; AuthAmountString =% 26% 23163% 3B10.00 & amp; _SP.charEnc = UTF8 & amp; Desc = & amp; Telephone = & amp; Address 1 = new + format + address 1) I understand that Java can use the Java Request object like this; Protected Zero DoGet (HTTPPrelevate Request Request, HTTP Server Response Response) Servlet Upption, IOException {String param1 = request.getParameter ("Ultimate 1") throws; String param2 = request.getParameter ("Ultimate 2"); }
The issue for me is that I work in PHP and need to convert string parameters to PHP format / $ varables.
I can not find any online content that can help me with it and would like some advice on how to convert it
This is a standard HTTP post request "World pej http object object" means only, it is being sent by Java-based service, Anything related to Java can not be seen. Use the standard PHP function to access request data. This is the $ _ POST array for post requests.
Comments
Post a Comment