url

best way to turn a post title into an URL in c#

hi everybody. I was wondering which is the best way to turn a string (e.g. a post title) into a descriptive URL. the simplest way that comes to mind is by using a regex, such in: public static Regex regex = new Regex( "\\W+", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.IgnorePatternWhitespace...

Web Hosting URL Length Limit?

Hello, I am designing a web application which is a tie in to my iPhone application. It sends massively large URLs to the web server (15000 about.) I was using NearlyFreeSpeech.net, but they only support URLS up to 2000 characters. I was wondering if anybody knows of web hosting that will support really large URLs? Thanks, Isaac Edit: ...

Getting the URL of the page code is embedded in

I have a piece of javascript code. Right now it forces users to manually enter the url of the page they want to insert it on. This is kind of a hassle. Is there a way I can fetch the url of the page in automatically and make everyone's life easier? ...

Problem with URLs on pages being served as XHTML

The following link to a URL in my application is giving me an XML Parsing Error on the second equals sign when I try to view the page. <a href="http://www.example.com/admin/banning.php?do=banuser&amp;u=3"&gt;Ban User</a> I think the problem is the ampersand in the URL. If I encode the ampersand the parsing error goes away but the URL ...

URL parsing test suite

I need to test some existing http:// URL parsing code for compliance to RFC 3986. I do not want to reinvent the wheel and to bump in to various corner cases. Is there some existing comprehensive test suite for that? I do not specify the language I use since I expect the test suite to be generic enough to be adaptable. I would settle ...

Example of a URI that isn't a URL?

It's been explained to me numerous times that all URLs are URIs but not all URIs are URLs. Can anyone give an example of something that is a URI but is not a URL? ...

prepend category in SEO-friendly URL

I have a website that contains "items", that have an ID and title. They are divided into categories. Category indexed are viewed at URL's like example.com/tutorials example.com/maps What would be the best URL structure for the items themselves, from a SEO point of view and just semantically in general. example.com/tutorials/12/Make+...

Deny access when a false category is given

I have a website with items that can be divided into categories (items have one, not like tags). This gives me URL's like http://example.com/tutorials/12/Do-nice-things. However, the category and title in the URL are for SEO-purposes, I don't need them, just the ID. It would also work with http://example.com/somethingwrong/12/Foobar. N...

Best ways of parsing a URL using C?

I have a URL like this: http://192.168.0.1:8080/servlet/rece I want to parse the URL to get the values: IP: 192.168.0.1 Port: 8080 page: /servlet/rece How do I do that? ...

Does the position of a slug in a URL matter?

FOR SEARCH ENGINE OPTIMIZATION PURPOSES, does the location of the slug within a URL matter? There's no doubt that you could code URL slugs to work properly in any order. I'm more interested to know if search engines place different weights to portions of the URL on the right-hand-side vs the left-hand-side For example, here the slug ap...

strange problem with java.net.URL and java.net.URLConnection

I'm trying to download an image from a url. The process I wrote works for everyone except for ONE content provider that we're dealing with. When I access their JPGs via Firefox, everything looks kosher (happy Passover, btw). However, when I use my process I either: A) get a 404 or B) in the debugger when I set a break point at the URL...

Is there an expiry on bit.ly or tinyurl URLs?

Is there an expiry on bit.ly or tinyurl shortened URLs? I'm asking because I'm thinking of persisting these shortened urls into the db for a client's twitter service. UPDATE: if you keep sending bit.ly the same URL, it'll return the same shorten URL!, this is great, because it means I don't need to persist the shorten URLs in my databa...

Why doesn’t url rewrite work in server

In asp.net 3.5, I'm rewriting the url http://www.dotoobeta/blogs/1108 to the following http://www.dotoobeta/blogs/blogs.aspx i am using UrlRewritingNet.UrlRewriter.dll and it work s fine in local but not work in server. i alrwdy confiuguation iis setting in server also. what is the solution pls tell me . premjit premjeet.m...

Launching a desktop application from a web site

Is it feasible to launch an application via a browser / URL? What are the options for doing this? I know the way to do it with IE and Windows (which usually doesn't work). Ideally, I would like this to be browser independent. Our application is RCP, so in theory Java Web Start could work, we would just have to do some significant chan...

Recommendation for JavaScript URL manipulation library / API

What are your recommendations for JavaScript URL manipulation library / API Specifically, I would like to Extract URL parameters out of a URL string. Ideally, would reflect into a JS object. Form URL parameter strings (ideally from a JS Object). ...

Checking for a valid url using Javascript Regular Expressions

What is the expression I should use in order to check for a valid url in javascript? ...

Preventing Url manipulation attacks with MVC?

Any good strategies, code snippets etc for preventing URL manipulation? For example I have this url; http://localhost/profile/edit/5 the id could easily be changed to anything and thus people could edit profiles they are not supposed too. Here are a few ideas I thought of but they all have there drawbacks: Change my system to use GUI...

RegExp: Extract URLs (without HTML links)

Hello! I want to extract links of a text using RegExp. There is no HTML code in the text so I can't search for the tags "<a...". How can I find the links, though? Example: "Please go to http://www.example.org/page1.html and click on ..." I want to extract the text: "http://www.example.org/page1.html" As far as I know, a URL...

How to code a URL shortener?

I want to create a URL shortener service where you can write a long URL into an input field and the service shortens the URL to "http://www.example.org/abcdef". Instead of "abcdef" there can be any other string with six characters containing a-z, A-Z and 0-9. That makes 56 trillion possible strings. My approach: I have a database table...

Types of URLs

1) Absolute http://www.example.com/images/icons.png 2) Relative ../images/icons.png 3) ??? /images/icons.png 4) ??? //www.example.com/images/icons.png Do URL types 3 and 4 have a name? One place I've seen type 4 being used is at slashdot. ...