oracle - UTL_HTTP - needs to stop escaping reserved chars -


i've got rest webservice , plsql package, want call webservice. parameters call located within uri of webservice.

htttp://myservice:8080/some/path/action?value1=123456&value2=some chars&value3=agermansonderzeichencalledÄ 

as can see, there 2 problems uri. first whitespace value2 , second special character value3.

that said, clear me uri has encoded more friendly format. webservice desires utf-8, uri encoded with: utl_url.escape(url,false,'utf-8').

this results in following uri:

htttp://myservice:8080/some/path/action?value1=123456&value2=some%20chars&value3=agermansonderzeichencalled%c3%84 

so far, good. encoded uri passed utl_http.begin_request(url,'get').

when execute request, , intercept wireshark, can see actual uri got called is:

htttp://myservice:8080/some/path/action?value1=123456&value2=some%2520chars&value3=agermansonderzeichencalled%25c3%2584 

what can see is, utl_http escapes reserved character '%' %25. in case whitespace first got converted %20 , after %2520.

what i'm looking way stop utl_http escaping reserved characters. alternative, way in utl_http deals whitespace , special character, without me calling utl_url, work me.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -