10-23-2007 10:44 AM
Hello
I am trying to send a http request with a cookie inside. But the cookie in the http header is urlencoded and our partner can not handle urlencoded cookies. How i can disable this encoding?
Example:
...
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
EXPORTING
URL = url
IMPORTING
CLIENT = http_client
CALL METHOD http_client->request->set_cookie
EXPORTING
name = 'JSESSIONID'
value = 'BFE22320B835B3BC19B2F17D52727A89.web202-jvm01'.
http_client->send( ).
-> HTTP Request <-
...
POST /myrequest/xmlSimpleLogin?agencyNumber=123
cookie: JSESSIONID=BFE17D52727A89%2eweb202-jvm01
content-type: text/html; charset=iso-8859-1
content-length: 4
...
you see the '.' is replaced with '%2e'.
Thanks
Ilan Stark
01-30-2011 2:26 AM
01-31-2011 2:26 AM
Here is the answer. check out note 1160362. Basically, you need to set parameter ict/disable_cookie_urlencoding = 1