Search found 5 matches

by almond
Wed Jul 31, 2024 7:39 am
Forum: HTTPAPI
Topic: http_req
Replies: 7
Views: 31495

Re: http_req

thx very much
then I'll try the YAJL to analysis the respondy
by almond
Mon Jul 29, 2024 1:29 am
Forum: HTTPAPI
Topic: http_req
Replies: 7
Views: 31495

Re: http_req

i just want to dsply the responsbody to verify the results

Code: Select all

dsply %size(%trim(responseBody));     // display the json body size
dsply %subst(%trim(res: 1 :50);  
by almond
Fri Jul 26, 2024 11:15 am
Forum: HTTPAPI
Topic: http_req
Replies: 7
Views: 31495

Re: http_req

i'm sorry, i set parameter of ResultStmf is *OMIT
i code like this could work,the response could display the json result
thank you very much!

Code: Select all

%size(%trim(responseBody ))
by almond
Fri Jul 26, 2024 9:35 am
Forum: HTTPAPI
Topic: http_req
Replies: 7
Views: 31495

Re: http_req

Thanks for your reply!
it can works using both parameters ,but i don't know hot to parse the responseBody like json body .
by almond
Fri Jul 26, 2024 6:40 am
Forum: HTTPAPI
Topic: http_req
Replies: 7
Views: 31495

http_req

Dear When using http_req, the "File to receive" function works fine, but how can I use the "String to receive" option to receive a JSON body like this? { "encryptString": "138", "hexString": "5BF28981860" } my code D rc s 10I 0 D msg s 25A ...