1

We've got a client that would like to get a response from our server that would look something like that:

http://www.clientDomain.com/tmp?first=a&second=b&link=$$http://www.otherDomain.com/tmp?third=c&forth=d$$

The client doesn't want the link parameter to be encoded.

As far as I'm aware, this is an illegal parameter, that may seems like one is trying to confuse a web server or a router, yet I could not find any documentation to support that. I didn't find any relevant info in the http protocol documentations.

Is that really an illegal parameter? Can you please refer me to a relevant documentation?

Thanks a lot.

Gil Shamgar
  • 578
  • 1
  • 6
  • 12
  • You'll need to escape some of the characters, other than that, it should just work – JustSid May 01 '16 at 08:17
  • 1
    Possible duplicate of [Encode URL in JavaScript?](http://stackoverflow.com/questions/332872/encode-url-in-javascript) – Rajesh May 01 '16 at 08:21

1 Answers1

2

See the URL Encoding section here: https://en.wikipedia.org/wiki/Query_string

Ton Plooij
  • 2,583
  • 12
  • 15