URL encoding in IIS
Seams like there are some issues when you are creating api that are run behind iis on the server. When you send a %2 as part of the url it is changed to / when the server receives it.
http://127.0.0.1:3035/{R:1}
// Append query string is setInbound rules and proxy in IIS
What I have found is som documentation of what this is here.
http://127.0.0.1:3035/{UNENCODED_URL}
// Append query string is not setWhat is says is to change the incomming rule, but that results in server get a %2f under iis and / in direct server. This probably means that the best way to handle it is to validate what format is comming in if you need to send / in your url as %2f and figure out how to read and combine what is comming in.
Example of workaround
define "sinpackage" text 100 .
define "spackage" text 52 .
define "sname" text 52 .
define "sver" text 52 .
sinpackage := DEOS("@getserverinfo", "url", "1") .
if stringfind(sinpackage, "@") >= 0 then
if stringfind(sinpackage, "/") >= 0 then
sname := stringfrom(sinpackage, "/") .
sver := DEOS("@getserverinfo", "url", "2") .
spackage := sinpackage .
else
if stringfind(sinpackage, "%2f") >= 0 then
sname := stringfrom(sinpackage, "%2f") .
sver := DEOS("@getserverinfo", "url", "2") .
spackage := sinpackage .
else
sname := DEOS("@getserverinfo", "url", "2") .
spackage := concat(sinpackage, "/", sname) .
sver := DEOS("@getserverinfo", "url", "3") .
end
end
else
sname := sinpackage .
spackage := sinpackage .
sver := DEOS("@getserverinfo", "url", "2") .
end
Example where we can determine what it is by start of parameter is @ then is then supposed to have a / in the form @scope/packedname