With CocoaRestClient (application suggest by a user here… and i’m loving it, very use full) i’m able to make my PUT request at work
Settings :
url : http://myserver/idxyz.json
Methode : PUT
BODY (raw) : {“some”:{“json”:“data”}}
Headers : Content-Type: application/json
auth : user:pass
hit the submit button, and it works
BUT with CURLSMB, i tried this :
d.InputData=jSONdata.ToString
d.OptionURL=pURL
d.OptionUsername = pUser
d.OptionPassword = pPass
d.optionverbose=true
d.OptionPut = true
d.SetOptionHTTPHeader array(“Content-Type:”, “application/json”)
e=d.Perform
the server look to see the header, auth etc… but not the inputdata… … what do i missed ?
thanks in advance !