Convert CURL command line to VBA
问题 In CURL, I can use this line curl --data 'DataToBeSent' https://example.com/resource.cgi I am struggling to convert such line to be used in VBA and this is my try till now Sub POST_Method_Example() Dim myMessage As String myMessage = "DataToBeSent" With CreateObject("MSXML2.ServerXMLHTTP") .Open "POST", "https://example.com/resource.cgi" .setRequestHeader "Content-Type", "multipart/form-data; boundary==------------------------d74496d66958873e" .send sData(myMessage) Debug.Print .ResponseText