查询字符串:查询字符串是否可以包含也包含查询字符串的网址? [英] Query string: Can a query string contain a URL that also contains query strings?

查看:145
本文介绍了查询字符串:查询字符串是否可以包含也包含查询字符串的网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例:

  http://foo.com/generatepdf.aspx?u=http://foo.com /somepage.aspx?color=blue&size=15 

我添加了iis标签,因为我猜测它也取决于你使用的是什么服务器技术?你可能想要UrlEncode查询字符串中的url 。


Example:

http://foo.com/generatepdf.aspx?u=http://foo.com/somepage.aspx?color=blue&size=15

I added the iis tag because I am guessing it also depends on what server technology you use?

解决方案

you'll probably want to UrlEncode the url that is in the query string.

这篇关于查询字符串:查询字符串是否可以包含也包含查询字符串的网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆