Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Break HTTP request to command and parameters

former_member185943
Participant
0 Likes
427

Hello!

Is there some ready-made standard function or method to break HTTP request to command and parameters?

For example, if I pass string like <i>http://somedomain/someapp/?get&par1=x&par2=y</i>

I would get parameter "command" with value "get" and internal table with 2 fields: name and value, filled with 2 rows: one for "par1" and its value "x", and another for "par2" with value "y".

Dont' waste too much time on this and don't send code - it's easy to program. I just wonder is there something standard, so that I use as much standard functions as possible.

Thanks and regards,

Igor

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
376

if its in the context of using with cl_http_client then you can use http_client->request->IF_HTTP_ENTITY~GET_FORM_FIELDS method to get them into itab.

2 REPLIES 2
Read only

athavanraja
Active Contributor
0 Likes
377

if its in the context of using with cl_http_client then you can use http_client->request->IF_HTTP_ENTITY~GET_FORM_FIELDS method to get them into itab.

Read only

0 Likes
376

Thanks, Raja - you're great!

Igor