Search found 5 matches

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: 383

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: 383

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: 1088

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: 1088

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: 1088

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...