Gil Shamgar
Gil Shamgar

Reputation: 628

Can an http get request's parameter be a url?

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.

Upvotes: 1

Views: 28

Answers (1)

Ton Plooij
Ton Plooij

Reputation: 2641

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

Upvotes: 2

Related Questions