# CURLSMBS PUT sending update JSON data

**URL:** <https://forum.xojo.com/t/curlsmbs-put-sending-update-json-data/43967>\
**Category:** Extras\
**Created:** [June 18, 2018, 3:04am UTC](https://forum.xojo.com/t/curlsmbs-put-sending-update-json-data/43967 "2018-06-18T03:04:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etienne\_Pilon](https://forum.xojo.com/user_avatar/forum.xojo.com/etienne_pilon/32/503_2.png) [@Etienne\_Pilon](https://forum.xojo.com/u/Etienne_Pilon)\
**Post date:** [June 18, 2018, 3:04am UTC](https://forum.xojo.com/t/curlsmbs-put-sending-update-json-data/43967/1 "2018-06-18T03:04:06Z")

</div>

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](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 !

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [June 18, 2018, 6:10am UTC](https://forum.xojo.com/t/curlsmbs-put-sending-update-json-data/43967/2 "2018-06-18T06:10:30Z")

</div>

what does debug log say?  
Can I see sample project?

---

<div class="post-metadata">

**Author:** ![Etienne\_Pilon](https://forum.xojo.com/user_avatar/forum.xojo.com/etienne_pilon/32/503_2.png) [@Etienne\_Pilon](https://forum.xojo.com/u/Etienne_Pilon)\
**Post date:** [June 18, 2018, 10:42pm UTC](https://forum.xojo.com/t/curlsmbs-put-sending-update-json-data/43967/3 "2018-06-18T22:42:45Z")

</div>

i sent by email a simple project (can’t put it here, login/pass are included 😛 )

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:15pm UTC](https://forum.xojo.com/t/curlsmbs-put-sending-update-json-data/43967/4 "2020-10-29T19:15:13Z")

</div>


