^符号在网址中的含义是什么? [英] What does a ^ sign mean in a URL?

查看:174
本文介绍了^符号在网址中的含义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要从网页抓取一些链接数据,并且我正在使用一个简单的手写PHP抓取工具它。爬虫通常工作正常;然后我来到这样的网址:



http://www.example.com/example.asp?x7=3^^^ ^^ select%20col1,col2%20 from%20table%20where%20recordid%3E = 20 ^^^^^



当在浏览器中键入时,但我的搜寻器无法检索此页面。我得到一个HTTP请求失败的错误。

解决方案

插入符号(^)不是URL中的保留字符,应该按原样使用。但是,如果您遇到问题,只需用它的十六进制编码替换%5E



是的, URL中的原始SQL就像是一个闪烁的大霓虹灯,读着EXPLOIT ME PLEASE!。无论谁设计的网站是脑死亡。


What is the meaning of a ^ sign in a URL?

I needed to crawl some link data from a webpage and I was using a simple handwritten PHP crawler for it. The crawler usually works fine; then I came to a URL like this:

http://www.example.com/example.asp?x7=3^^^^^select%20col1,col2%20from%20table%20where%20recordid%3E=20^^^^^

This URL works fine when typed in a browser but my crawler is not able to retrieve this page. I am getting an "HTTP request failed error".

解决方案

Caret (^) is not a reserved character in URLs, so it should be acceptable to use as-is. However, if you re having problems, just replace it with its hex encoding %5E.

And yeah, putting raw SQL in the URL is like a big flashing neon sign reading "EXPLOIT ME PLEASE!". Whoever designed the site in question is brain-dead.

这篇关于^符号在网址中的含义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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