02-09-2005 5:39 PM
I'm passing data as a query string in the URL calling the HTTP_GET function. Unfortunately, the length of the query string is beyond the 255 barrier of the URL. Is there a way to direct the query string parameters into one of the table(s) to accomplish my task (REQUEST_HEADERS or REQUEST_ENTITY_BODY)? If so, do the parameters take on the same format (field=value)? I would appreciate any help.
Thanks in advance.
Terry
02-09-2005 8:18 PM
Instead use CL_HTTP_CLIENT class.
For sample programs on this search for RSHTTP* from se38.
Regards
Raja
02-09-2005 8:31 PM
Raja,
I've already looked though the standard SAP HTTP programs, and they don't address this situation. Also, we're on 4.6c, and that class is not available (I wish it were). I appreciate your suggestions though.
Thanks,
Terry
Message was edited by: Terry West
02-09-2005 9:46 PM
Hello,
I used a data element called DMS_URL for either to receive a URL and pass URL to a function. SAP uses this in DMS and Content Server communication.
DATA: w_url TYPE dms_url.
Hope this helps.
Sumant.
02-10-2005 1:50 PM
Hello Sumant,
I've tried that also, but that doesn't work either. It actually seems as if the cutoff is at 132 characters instead of the initially thought of 255.
Thanks,
Terry
02-10-2005 2:02 PM
Hi,
it's not a good solution, but you can play with the tiny url fonction that you could find in the web.
example : http://tinyurl.com/
Frédéric
02-10-2005 4:00 PM
Hi Frédéric,
Thanks for the suggestion, but that's probably a little more than what I'm looking to invest into this application.
Regards,
Terry
02-11-2005 3:59 PM
I had to use HTTP_POST instead of HTTP_GET. In the function, there are two request tables (REQUEST_HEADERS and REQUEST_ENTITY_BODY). Both of these tables must be filled with the proper information for the query string to work. The header table requires HTTP header information (Content-type: ????) where ???? is the type of content being sent. The body table contains what the header table describes, which in my case was the query string.
BTW - I found OSS note #143145 that applies to the 132 character limitation that was the original problem with the URL.
Thanks to everyone for their suggestions. 🐵
Regards,
Terry
03-08-2005 7:32 PM
06-27-2016 12:12 PM