Getting URL in HTTP Handler class
I have created new sub-element (test_html) in SICF node and assigned a http handler class.
I can test my handler class and also add a parameter to my URL and get the details in the
IF_HTTP_EXTENSION~HANDLE_REQUEST method of the class using:
server->request->get_form_fields( CHANGING fields = fields ).
This is all fine as normal.
My problem might sound bit strange but I need this.(please don't ask me why I need this)
My URL looks like: http://<server>:<port>/custom/test_html?screen=1
If you would have noticed when we change the URL to
http://<server>:<port>/custom/test_html/blablabla?screen=1 everything still works fine.
What I want is: how can I get what has been added before '?' not as parameter, In this case blablabla.
test_html is my defined sub-element so anything I add after it using '/' and not '?' as I can get the parameters any ways.
Any solutions? any method or FM to get the URL? I tried using FM HTTP_GET_URL2 and HTTP_GET_URL but anything after the sub-element name and before the parameter is getting ignored.
Any solutions would be highly appreciated.
Thanks & Regards,