Im trying to POST and PUT to prestashop web service that has POST and PUT both enabled but im unable to do it. GET works fine but not PUT/POST. Can anyone gimme a sample code snippet or something as to how to make the HTTP request for PUT/POST? I’ve tried the normal http request setting the method to POST/PUT but of no use. Please help me out asap!!!
PS: Im trying to do this from iOS (iPhone)…
I finally sorted out the problem on the server side of the web service. There was a bug in Prestashop version to whose web service I was trying to PUT/POST. The XML was being appended as a URL querystring but the escape characters to recognize the XML string was wrongly coded somewhere. Had to sit out with the PHP developer and sort it out. If anyone is facing the same problem, check out the Prestashop PHP code part of the web service and find out the escape character recognizing block and fix it (sorry i really dont know where the PHP guy fixed it, else would have given a better description).