I am working in a php environment and want to receive a Java HTTP Request Object. it will be from an external source to the host website.
the object will be in this format:
POST /fail?installation=XXXXXX&msgType=authResult HTTP/1.0
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Host: www.worldpay.com
Content-Length: 973
User-Agent: WJHRO/1.0 (worldPay Java HTTP Request Object)
region=new+format+region&authAmountString=%26%23163%3B10.00&_SP.charEnc=UTF8&desc=&tel=&address1=new+format+address1)
i understand from java that i can access the java request object like this;
protected void doGet(
HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
String param1 = request.getParameter("param1");
String param2 = request.getParameter("param2");
}
the issue for me is that i work in php and need to convert the string params into a PHP format/$varables.
i cannot find any online material that can assist me with this and would really appreciate some advice on how to convert it