Forum Discussion
Jason_Keating
Altostratus
8 years agoHTTP::uri decodes encoded chars by default, and I don't see an option to stop it
I am doing simple HTTP to HTTPS redirects, I can't use a policy and need to use an iRule to do this.
My problem is some of the URI's contain encoded chars - in particular an encoded /. When I th...
stan_piron
Cumulonimbus
8 years agoHi,
I don't understand what is the issue.
I tested your URI with the default
_sys_https_redirect irule which redirect http to https and here is the result:
$ curl http://company.local/0%2F101%2F0%2F1/621be240-355e-4f75-b96a-e4116d195fd4 -vv
* Trying 1.1.1.1...
* Connected to company.local (1.1.1.1) port 80 (0)
> GET /0%2F101%2F0%2F1/621be240-355e-4f75-b96a-e4116d195fd4 HTTP/1.1
> Host: company.local
> User-Agent: curl/7.43.0
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 302 Found
< Location: https://company.local/0%2F101%2F0%2F1/621be240-355e-4f75-b96a-e4116d195fd4
< Server: BigIP
* HTTP/1.0 connection set to keep alive!
< Connection: Keep-Alive
< Content-Length: 0
<
* Connection 0 to host company.local left intact
The redirect keep all encoded characters and did not decode them.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects