url

CRC32 to make short URL for web

I am trying to understand crc32 to generate the unique url for web page. If we use the crc32, what is the maximum number of urls can be used so that we can avoid duplicates? What could be the approximative string length to keep the checksum to be 2^32? When I tried UUID for an url and convert the uuid bytes to base 64, I could reduce ...

Why have #md5=... in the URL anchor?

Some download links contain a md5 value in the URL anchor, for instance: http://pypi.python.org/packages/source/d/distribute/distribute-0.6.1.tar.gz#md5=e6224b1da4636dd8ae53407fc67bb35b What is the intent behind this convention? Are there download tools or HTTP clients that make use of this encoded md5 value? wget or curl does not se...

Get URL parameter with jQuery

I'm looking for a jQuery plugin that can get url parameters, and support this search string without outputting Javascript error: malformed URI sequence. If there isn't a jQuery plugin that supports this, I need to know how to modify it to support this. ?search=%E6%F8%E5 The value of the url parameter, when decoded, should be: æøå (th...

ASP.NET MVC -- How to Format URL Query String

How to I format a query string so it looks like this search?q=power+tools currently it looks like this search?q=power%20tools Is there a way to do this without replacing the space for a plus sign? ...

How to change URL for web app?

When I deploy myWebApp.war in JBoss I can access this web application by next URL: http://localhost%3A8080/myWebApp But I want to have next URL: http://localhost%3A8080/support/myWebApp What shopuld I do in order to have such URL? ...

Adequate replacement for / in URLs

Quick one. I'm using mod rewrite and have most replacements in place: empty space = _ æ = ae Æ = ae and so on. What would be the natural replacement character for /? Thanks ...

Is there a Java method that encodes a collection of parameters as a URL query component?

Is there a widely-used Java library that does something like what dojo.objectToQuery() does? E.g. (assuming the use of HttpCore's HttpParams object, but any key-value mapping will do): HttpParams params = new BasicHttpParams() .setParameter("foo", "bar") .setParameter("thud", "grunt"); UnknownLibrary.toQueryString(params); sho...

Create a new reservation via a restful url?

Hi All, I have a html table which consists of columns for days, and rows for hours of the day. I intend this to be a UI widget, similar to the commonly seen calendar date picker. Clicking on a particular cell of the table would select that date and time for creating a new reservation. I was considering using a url to represent this se...

Regular expression for URL validation (in JavaScript)

Does someone have a regex for validating urls (NOT for finding them inside a text passage)? JavaScript snippet would be preferred. ...

What character replacements should be performed to make base 64 encoding URL safe?

In looking at URL safe base 64 encoding, I've found it to be a very non-standard thing. Despite the copious number of built in functions that PHP has, there isn't one for URL safe base 64 encoding. On the manual page for [base64_encode()][1], most of the comments suggest using that function, wrapped with strtr(): function base64_url_e...

stringWithContentsOfUrl failing after updating to OS3.1

I have an application which has been running happily, but since I updated to OS3.1 and updated the SDK the application is failing to log onto a remote server, passing a connection string to the stringWithContentsOfUrl function. Before the update this was working fine, and if I copy the text string which is displayed on the NSLog stateme...

mod_rewrite to redirect /index.whatever to / isn't working

I want to redirect all requests for index.html|php|php5 to http://www.domain.co.uk/ using mod_rewrite and I've copied the code from a book on search engine optimization with PHP verbatim, then added in the php5 option, but it isn't working. This is my complete .htaccess file: RewriteEngine On #translate any .html ending into .php5 Rewr...

How to change url with jQuery?

Suppose it's in a.html. How to change url to b.html with jQuery? ...

Php - name of page parts

Hello, i need in naming like this: site.com/about site.com/contacts Could i do it without .htaccess? ...

Parse custom URIs with urlparse (Python)

My application creates custom URIs (or URLs?) to identify objects and resolve them. The problem is that Python's urlparse module refuses to parse unknown URL schemes like it parses http. If I do not adjust urlparse's uses_* lists I get this: >>> urlparse.urlparse("qqqq://base/id#hint") ('qqqq', '', '//base/id#hint', '', '', '') >>> url...

Web apps: is it a bad idea to use (User, URI) to uniquely identify resources, instead of just the URI?

I'm toying around with a little web app which lets people create queues of URIs (eg, "stuff to read for work", "programming languages to learn", etc), and I'm trying to decide on a URL scheme. One of the ideas I'm toying with is using a URI like /queue/$queue_name to represent a user's queue (where the user's name would come from a cook...

JavaFX url-proxy?

My computer is running behind proxy. I want to access url from JavaFX. for example say i want to show image from a url. But i haven't seen anyway to provide proxy settings for the connection(?). Please if someone can tell me how to do things in such situation? Thanks ...

JavaScript/jQuery method to find base URL from a string

I'm trying to find a relatively easy and reliable method to extract the base URL from a string variable using JavaScript/jQuery. For example, given something like: http://www.sitename.com/article/2009/09/14/this-is-an-article/ I'd like to get: http://www.sitename.com/ Is a regular expression the best bet? If so, what statement could...

how can i validate a url in javascript using regular expression

i want to validate a textbox who have some url value like blogs address or site adress how can i validate this textbox in js ...

How to process URL without specifying parameters

I was wondering if I could process an URL without specifing parameters. For example: http://www.example.com/Sometext_I_want_to_process I don't want to use: http://www.example.com/index.php?text=Sometext_I_want_to_process The site has to redirect to a different page after processing. What language choice do I have? ...