What are the safe characters for making URLs?

I am making a website with articles, and I need the articles to have “friendly” URLs, based on the title. For example, if the title of my article is “Article Test”, I would like the URL to be http://www.example.com/articles/article_test. However, article titles (as any string) can contain multiple special characters that would not be possible … Read more

Characters allowed in a URL

Does anyone know the full list of characters that can be used within a GET without being encoded? At the moment I am using A-Z a-z and 0-9… but I am looking to find out the full list. I am also interested into if there is a specification released for the up coming addition of … Read more

What is the etymology of ‘slug’ in a URL? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 11 years ago. This post was edited and submitted for review 16 days ago and failed to reopen the post: Original close reason(s) were not resolved Improve this question … Read more

Should URL be case sensitive?

I noticed that HTTP://STACKOVERFLOW.COM/QUESTIONS/ASK and http://stackoverflow.com/questions/ask both works fine – actually the previous one is converted to lowercase. I think that this makes sense for the user. If I look at Google then this URL works fine: http://www.google.com/intl/en/about/corporate/index.html  but this one with “ABOUT” is not working: http://www.google.com/intl/en/ABOUT/corporate/index.html  Should the URL be case sensitive? 18 Answers … Read more

Passing a URL with brackets to curl

If I try to pass a URL to curl that contains brackets, it fails with an error: $ curl ‘http://www.google.com/?TEST[]=1’ curl: (3) [globbing] illegal character in range specification at pos 29 However, if I escape both brackets, it appears to work: $ curl ‘http://www.google.com/?TEST\[\]=1’ Interestingly, I use a backslash to escape only the first bracket … Read more

What is %2C in a URL?

In a URL, what does the %2C encoding mean and it uses?. 7 s 7 Check out http://www.asciitable.com/ Look at the Hx, (Hex) column; 2C maps to , Any unusual encoding can be checked this way +—-+—–+—-+—–+—-+—–+—-+—–+ | Hx | Chr | Hx | Chr | Hx | Chr | Hx | Chr | +—-+—–+—-+—–+—-+—–+—-+—–+ … Read more