Web Connection
WEB Connect POST
Gravatar is a globally recognized avatar based on your email address. WEB Connect POST
  Thomas Craven
  All
  Oct 6, 2020 @ 04:26pm

I am trying to Send XML data to a web service. The web service responds with 405 - HTTP verb used to access this page is not allowed. The distant end support say they are not seeing a POST. This same code has worked for me in the past. Any Suggestions?

loHttp = CREATEOBJECT("wwhttp")
lohttp.CHTTPVERB = 'POST'  && added POST verb 10/04/2020

loHttp.cContentType = "application/xml"

loHttp.AddHeader("X-API-Key","Ac29GnbjP1eMlCA7MK")  && Oakwood on line
loHttp.AddPostKey(lcxmldata)   && ADD THE XML DATA

lcResult = loHttp.HttpGet("https://court.testcite.com/ecitation") 

*lcResult = loHttp.put("https://court.testcite.com/ecitation") 
Gravatar is a globally recognized avatar based on your email address. re: WEB Connect POST
  Rick Strahl
  Thomas Craven
  Oct 7, 2020 @ 09:00pm

Please people - format your code that you post. Can you not read the note above the Post button?

That request will most definitely produce an POST request. There's likely some other issue...

+++ Rick ---

© 1996-2020