Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

XPRIM_HttpRequest

HttpClientRequest

AddFile

Yes

Yes

AddJson

Yes

Yes

AddJsonArray

Yes

Yes

AddJsonObject

Yes

Yes

AddString

Yes

Yes

AddUrlEncodedFormValue

Yes

Yes

AppendString

-

Yes

Refer to the limitations of using AddFile on IBM i.

Example - Creating a new Employee using a Web API

...

     #Req.DoPost Url('http://yourcompany.com/api/hr/employee')

Next: Constructing JSON Data for Your Request Body