开发者

How to put a link as an parameter in a request?

开发者 https://www.devze.com 2023-02-20 14:08 出处:网络
I\'d like to do something like: http://url.com/page?link=http://otherpage.com/something?action=action&id=6

I'd like to do something like:

http://url.com/page?link=http://otherpage.com/something?action=action&id=6

but of course I can't because it would confuse everything (which ? would it consider as "right" and which &).

Solution? Ja开发者_运维技巧va tip?


You should url encode the variable.

P.s. What do you mean with "java tip"?

0

精彩评论

暂无评论...
验证码 换一张
取 消