Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does a ^ sign mean in a URL?

Tags:

html

http

url

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".

like image 843
KJ Saxena Avatar asked Feb 24 '10 20:02

KJ Saxena


People also ask

What does a sign do in a URL?

In a URL, a hash mark, number sign, or pound sign ( # ) points a browser to a specific spot in a page or website. It is used to separate the URI of an object from a fragment identifier.

What do '?' And '#' mean in a URL?

So in your case, the first part of the URL is a request to the server: http://dev.ibiza.jp:3000/facebook/report? advertiser_id=2102. and the second part of the URL could be for Javascript to display a specific view of the page once it has loaded: #/dashboard.

What does a percent sign in a URL mean?

Percent-encoding is a mechanism to encode 8-bit characters that have specific meaning in the context of URLs. It is sometimes called URL encoding. The encoding consists of substitution: A '%' followed by the hexadecimal representation of the ASCII value of the replace character.

What does %20 mean in a URL?

A space is assigned number 32, which is 20 in hexadecimal. When you see “%20,” it represents a space in an encoded URL, for example, http://www.example.com/products%20and%20services.html.


2 Answers

^ characters should be encoded, see RFC 1738 Uniform Resource Locators (URL):

Other characters are unsafe because gateways and other transport agents are known to sometimes modify such characters. These characters are "{", "}", "|", "\", "^", "~", "[", "]", and "`".

All unsafe characters must always be encoded within a URL

You could try URL encoding the ^ character.

like image 149
Brian R. Bondy Avatar answered Oct 23 '22 11:10

Brian R. Bondy


Based on the context, I'd guess they're a homespun attempt to URL-encode quote-marks.

like image 40
Bob Kaufman Avatar answered Oct 23 '22 11:10

Bob Kaufman