Skip to Content
0
Former Member
Jan 17, 2012 at 03:12 PM

CL_HTTP_ENTITY parsing encoded URLs

231 Views

Hello world,

I am trying to send URL encoded request to a SICF service, ie. something like

http://server:port/some_path/service_name?parameter1=one%26parameter2=two.

Here %26 represents &

Usually I parse the request with

l_param1 = server->request->get_form_field( 'parameter1' ).

This doesn't work for encoded URLs. So I searched the library and found a parameter formfield_encoding and change the parsing to

l_param1 = server->request->get_form_field( exporting name = 'parameter1' formfield_encoding='1' )

But this doesn't work either.

Does someone have an idea how to get the parameters?

regards, anton

BTW: I run into this problem since I am creating SICF services which output HTML created by a simple transformation. Within such HTMLs I want to place URLs for navigation. Unfortunately the ST-framework does not allow me to use & anywhere but only allows me to have it encoded like &amp ; or %26.