[progress Communities] [progress Openedge Abl] Forum Post: Why Http Client Post With...

  • Thread starter Thread starter Rod Anderson
  • Start date Start date
Status
Not open for further replies.
R

Rod Anderson

Guest
I was struggling for a couple hours with a http client post request. I kept getting a 400 (Bad Request) error. Once I switch the payload to be a character instead of a longchar it worked even though the values where the same. Is this expected behavior? Thanks in advance, Rod 11.6 Linux // oRequestBody = NEW STRING(lcSstorePayload). //fails cSstorePayload = lcSstorePayload. oRequestBody = NEW STRING(cSstorePayload). //works oRequest = RequestBuilder:Post(links.uri, oRequestBody) :UsingBasicAuthentication(oCreds) :ContentType('application/json') :AcceptJson() :Request.

Continue reading...
 
Status
Not open for further replies.
Back
Top