Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send UBL 2.1 via API POST
Message
From
02/12/2021 11:05:10
 
 
To
02/12/2021 06:55:27
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01682832
Message ID:
01682891
Views:
101
This message has been marked as the solution to the initial question of the thread.
Vojislav,

Change this
boundary = "----WebKitFormBoundary7MA4YWxkTrZu0gW"   
into this
boundary = "WebKitFormBoundary7MA4YWxkTrZu0gW"   
Then, in the TEXT .. ENDTEXT structure, change all occurrences of the boundary to
--<<m.boundary>>
except for the last one, that must signal the end of form data:
--<<m.boundary>>--
In the request header, set it to
m.loXMLHTTP.setRequestHeader('Content-type', 'multipart/form-data; charset=utf-8; boundary=' + m.boundary)
Also, be sure to calculate the content length after the UTF-8 encoding.

Hopefully, this will do.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform