Search found 17 matches

by OlivierPierre04
Thu Feb 10, 2022 4:17 pm
Forum: HTTPAPI
Topic: http_string(
Replies: 6
Views: 4805

Re: http_string(

Hi Scott , did you read my questions ???
by OlivierPierre04
Thu Feb 10, 2022 4:08 pm
Forum: HTTPAPI
Topic: http_post
Replies: 1
Views: 3031

Re: http_post

I found it


Rc = http_req( 'PUT'
: URL
: Filename
: *omit
: *omit
: myJSON
: 'application/json' );
by OlivierPierre04
Thu Feb 10, 2022 2:46 pm
Forum: HTTPAPI
Topic: http_post
Replies: 1
Views: 3031

http_post

Hi folks , question Is it possible to do the same in PUT and not in POST I would like to use the Filename file in order to have the information when calling the web service It can be done with Rc = http_post( URL : %addr( myJSON : *data ) : %only (myJSON) : Filename : HTTP_TIMEOUT : HTTP_USERAGENT :...
by OlivierPierre04
Wed Feb 09, 2022 5:08 pm
Forum: HTTPAPI
Topic: Error code HTTP
Replies: 1
Views: 3003

Error code HTTP

Hi folks , Why the return value http_error does not contain the true http error value such as 200 , 500 ... etc ** Invalid URL format HTTP_BADURL C CONST(1) ** Host not found (not a valid IP address, or DNS lookup failed) HTTP_HOSTNF C CONST(2) ** Unable to create a new socket HTTP_SOCERR C CONST(4)...
by OlivierPierre04
Fri Jan 21, 2022 8:37 am
Forum: HTTPAPI
Topic: http_string(
Replies: 6
Views: 4805

Re: http_string(

How it works How to use this HTTP/2 So what's difference between the first and subsequent requests in traditional HTTP/1.1 scenario? DNS Lookup: It might take more time to resolve DNS for the first request. Subsequent requests will resolve a lot faster using browser DNS cache. Waiting (TTFB): The fi...
by OlivierPierre04
Fri Jan 21, 2022 8:11 am
Forum: HTTPAPI
Topic: http_string(
Replies: 6
Views: 4805

Re: http_string(

Thanks Scott for the answer, I'm hungry now Other question There is always a longer call time of the "http_string( 'POST': URL: prm_data: 'application/json');" between the 1st time and the other times There would be a way to make the first call faster ?? I imagine that this time is actuall...
by OlivierPierre04
Thu Jan 20, 2022 4:01 pm
Forum: HTTPAPI
Topic: http_string(
Replies: 6
Views: 4805

http_string(

Hi folks

i have an issue

in my pgm i have to call http_string

i call this procedure 3 times with same URl sale prm_data
http_string( 'POST': URL: prm_data: 'application/json');

for the first one , i have a 200 HTTP result and after a 404 http result

i dont understand why
by OlivierPierre04
Fri Jan 14, 2022 9:01 am
Forum: General
Topic: send a table between 2 pgms in freeform
Replies: 2
Views: 2986

send a table between 2 pgms in freeform

Hi folks i have a program X who call a pgm Y this pgm Y feed a table and i want to consume it in the X pgm i know i have to use pointer but i dont know how my pgms are in free form this the table in the pgm Y // *** Definition de la DS de reception du Json dcl-s num_sample int(5); dcl-ds sample qual...
by OlivierPierre04
Thu Jan 13, 2022 7:47 am
Forum: YAJL-ILE
Topic: DATA-INTO
Replies: 1
Views: 1910

DATA-INTO

Hi , can you help me please it doesn't work dcl-ds allresponse qualified; dcl-ds CodeAct dim(3); codeActiviteFm varchar(100); isAs400FiniPousserDansFm Ind; isOverlogFiniPousserDansFm Ind; isPrevisionsPretesPourIntegration varchar(200); dcl-ds traceabilites dim(3); propriete varchar(100); horodatage ...