Hi,
I have the following curl but I've never posted a CSV file to a REST API this way. I am stuck on the part shown below. Any ideas?
Swi
I have the following curl but I've never posted a CSV file to a REST API this way. I am stuck on the part shown below. Any ideas?
Code:
curl --request POST "https:/xxxxxxxx.com/api/reports/upload" --header "Authorization: Bearer {YOUR_AUTH_KEY}" --header "Content-Type: multipart/form-data" --header "Accept: application/json" --form "file=@/tmp/phpgXXXXX"
VB (so far):
url = "[URL unfurl="true"]https://xxxxxxxx.com/api/reports/upload"[/URL]
Set HttpReq = New MSXML2.XMLHTTP60
HttpReq.Open "POST", url, False
HttpReq.setRequestHeader "Authorization", token
HttpReq.setRequestHeader "Content-Type", "multipart/form-data"
[b]<-----What to put here----->[/b]
HttpReq.send (jsontxt)
Swi