Application Development 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: 

if_http_client disable cookie urlencoding

Former Member
0 Kudos

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

2 REPLIES 2

tony_raimo2
Explorer
0 Kudos

I'm having the same issue. Did you ever figure it out?

tony_raimo2
Explorer
0 Kudos

Here is the answer. check out note 1160362. Basically, you need to set parameter ict/disable_cookie_urlencoding = 1