Search found 9 matches

by sgonchigar
Mon Jul 17, 2023 3:26 pm
Forum: HTTPAPI
Topic: getting 411 error with POST having empty body or request is causing error
Replies: 7
Views: 3376

Re: getting 411 error with POST having empty body or request is causing error

the missing member and member text issue is resolved. There were two new errors. I took "I" on both these. 570 - CRTPNLGRP PNLGRP(LIBHTTP/HTTPAPI) SRCFILE(*LIBL/QCMDSRC) SRCMBR(HTTPAPIPNL) Warning messages issued when panel group HTTPAPI created. 573 - DLTSPLF FILE(HTTPAPI) JOB(*) SPLNBR(*...
by sgonchigar
Sun Jul 16, 2023 3:15 am
Forum: HTTPAPI
Topic: getting 411 error with POST having empty body or request is causing error
Replies: 7
Views: 3376

Re: getting 411 error with POST having empty body or request is causing error

Thank you so much Scott. That worked. I did have problem installing. Below 3 files were missing during the installation process. I was able to get around by copying from prior version. File QRPGLESRC in library *LIBL with member NTLM_H not found. File QRPGLESRC in library *LIBL with member ENCODERR4...
by sgonchigar
Fri Jul 14, 2023 3:08 pm
Forum: HTTPAPI
Topic: getting 411 error with POST having empty body or request is causing error
Replies: 7
Views: 3376

Re: getting 411 error with POST having empty body or request is causing error

Yes. The Content-Length is not getting passed when the body is empty. Even I thought it should be a GET. The POST requirement doesn't have anything in the body. Just a query parameter. This is the Curl example that was provided. curl --location --request POST 'https://apimarketplace.uhc.com/Claims/a...
by sgonchigar
Thu Jul 13, 2023 11:49 pm
Forum: HTTPAPI
Topic: getting 411 error with POST having empty body or request is causing error
Replies: 7
Views: 3376

getting 411 error with POST having empty body or request is causing error

Hello, I am consuming a API that has no request body. There is just a query parameter. RequestStr = '' ; ResponseStr = '' ; Url = https://......................?acknowledgementId=value rc = http_req('POST': Url : *omit : ResponseStr : *omit: RequestStr :'application/json') ; Above is resulting in 41...
by sgonchigar
Tue Sep 27, 2022 7:01 pm
Forum: HTTPAPI
Topic: How to change the filename in http_mfd_encoder_addstmf
Replies: 2
Views: 5023

Re: How to change the filename in http_mfd_encoder_addstmf

Thank you Scott for the response. I tried the IFS chgdir(). It did not attach the file. The REST service had a limitation on the file name length of 64 char and 10 char for the extension. I realized what my issue was after you mentioned that the path is ignored by the host system. I was appending 26...
by sgonchigar
Mon Sep 26, 2022 5:47 pm
Forum: HTTPAPI
Topic: How to change the filename in http_mfd_encoder_addstmf
Replies: 2
Views: 5023

How to change the filename in http_mfd_encoder_addstmf

Hello, I am using http_mfd_encoder_addstmf to upload files, the content disposition filename shows the full IFS path. Wondering if there is a way to override that. Example: Request header Content-Disposition: form-data; name="file"; filename="/home/user/pdf/<pdf_filename>" Conten...
by sgonchigar
Wed May 11, 2022 6:35 pm
Forum: HTTPAPI
Topic: 400 ERROR - Bad Request
Replies: 5
Views: 6738

Re: 400 ERROR - Bad Request

THANK YOU Scott!. Followed Example7 and it worked. Below is the working code. //*--------------------------------------------------------------- //*‚MAIN //*--------------------------------------------------------------- // *entry/entry parameters dcl-pi *n; end-pi; //..consume REST Api. //...testin...
by sgonchigar
Wed May 11, 2022 2:38 am
Forum: HTTPAPI
Topic: 400 ERROR - Bad Request
Replies: 5
Views: 6738

Re: 400 ERROR - Bad Request

Thank you for the quick response Scott. Trying to figure. API documentation/swagger is not clear on that. When I run from python, I see this DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): apimarketplace.uhcprovider.com:443 send: b'POST /Claims/api/attachment/v1.0?tin=12345678&do...
by sgonchigar
Tue May 10, 2022 8:38 pm
Forum: HTTPAPI
Topic: 400 ERROR - Bad Request
Replies: 5
Views: 6738

400 ERROR - Bad Request

Hello, I am trying to upload a PDF document to a REST api - sandbox as mentioned here https://apimarketplace.uhcprovider.com/#/documentation/claims/post-claim-attachment it works in SoapUI and using python on iSeries. However, I am getting Bad Request when I am consuming using HTTPAPI. Here is the d...