PHP: passing data through header -


I am sending a simple request and trying to get feedback, but I get an answer as an internal error. The parameters "Cookies: Session", IPadres and Mode all give the http header and my Jason request {"postcode": "EC2A3A", "property identifier": "93A"}

  And left; Php $ json = '{"Postcode": "EC2A3A", "Property Identifier": "93A"}'; $ Ch = curl_init (); $ Header = array ('content-type: application / jason', 'set cookie: session id = eritart', 'cookie: session id = artart', 'ipadress: 10.0.0.1', 'mode: dev') ; Curl_setopt ($ CH, CURLOPT_HTTPHEADER, $ header); Curl_setopt ($ CH, CURLOPT_HEADER, 1); Curl_setopt ($ c, CURLOPT_URL, 'http://dev.wali.example.co.uk:8280/getAddress'); Curl_setopt ($ CH, CURLOPT_POST, 1); Curl_setopt ($ ch, CURLOPT_POSTFIELDS, $ json); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); $ Result = curl_xac ($ CH); Curl_close ($ ch); Var_dump ($ result); ? & Gt;  


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -