Search found 17 matches
- Thu Feb 10, 2022 4:17 pm
- Forum: HTTPAPI
- Topic: http_string(
- Replies: 6
- Views: 14155
Re: http_string(
Hi Scott , did you read my questions ???
Re: http_post
I found it
Rc = http_req( 'PUT'
: URL
: Filename
: *omit
: *omit
: myJSON
: 'application/json' );
Rc = http_req( 'PUT'
: URL
: Filename
: *omit
: *omit
: myJSON
: 'application/json' );
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 ...
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 ...
- Wed Feb 09, 2022 5:08 pm
- Forum: HTTPAPI
- Topic: Error code HTTP
- Replies: 1
- Views: 6233
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 ...
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 ...
- Fri Jan 21, 2022 8:37 am
- Forum: HTTPAPI
- Topic: http_string(
- Replies: 6
- Views: 14155
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 ...
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 ...
- Fri Jan 21, 2022 8:11 am
- Forum: HTTPAPI
- Topic: http_string(
- Replies: 6
- Views: 14155
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 actually the ...
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 actually the ...
- Thu Jan 20, 2022 4:01 pm
- Forum: HTTPAPI
- Topic: http_string(
- Replies: 6
- Views: 14155
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
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
- Tue Jan 18, 2022 3:49 pm
- Forum: General
- Topic: send a table between 2 pgms in freeform
- Replies: 2
- Views: 9029
- Fri Jan 14, 2022 9:01 am
- Forum: General
- Topic: send a table between 2 pgms in freeform
- Replies: 2
- Views: 9029
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 ...
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 ...
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 ...
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 ...