- Jay Pillai
- PowerBuilder
- Monday, 22 March 2021 01:45 PM UTC
Hi
I am using Msxml2.XMLHTTP.6.0 to call a REST service. My GET and POST works with no issues but I am facing some problems with PUT and exactly here oleHTTP.send(as_SendString) fails with oleruntimeerror. HTTP error 1223 Operation aborted.
Strangely the data I am sending, is PUT successfully but I still get this Runtime error 1223. Sometimes I did get the 12019 error but most of the time it was 1223.
The POST request, I think, is not much different than PUT but why is PUT causing issues.
as_ContentType = '"text/plain" since the server only accepts plain text
oleHTTP.setRequestHeader("Content-Type", as_ContentType) is the only header I am sending. Removing this header or adding other headers still gives me the same 1223 error. Nothing helped.
Hope somebody out there had such issues and has a solution-
Thank you
Jay
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.