Hello List,
I'm using *web\request to communicate with a web\service. I'm quite new to the whole posting to a web service....
I'm having trouble with one of the POST's.
Someone has shown me a tool call post-man to show me what the code looks like in other languages (like python, node, javascript, etc)
and all of them do this thing where they wrap the POST_BODY in this webkitformboundary
my post fails...
i'm just curious...do i have to do this webkitformboundary or does *web\request do this for me...
payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"filename\"; filename=\"DiscountUpdate.xml\"\r\nContent-Type: application/xml\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--"
headers = {
'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW",
'Content-Type': "application/x-www-form-urlencoded",