Can PHP read the hash portion of the URL?
Assuming a URL of: www.mysite.com?val=1#part2 PHP can read the request variables "val1" using the GET array. Is the hash value "part2" also readable? or is this only upto the browser and JavaScript. ...
Assuming a URL of: www.mysite.com?val=1#part2 PHP can read the request variables "val1" using the GET array. Is the hash value "part2" also readable? or is this only upto the browser and JavaScript. ...
How could a page display different content based on the URL hash? I'm not talking about the browser scrolling down to display the anchored section, but something like JavaScript reacting to that hash and loading different content via AJAX. Is this common or even probable? ...
I'm storing URLs in a database, and I want to be able to know if two URLs are identical. Generally, a trailing slash at the end doesn't change the response you'd get from a server. (ie. http://www.google.com/ is the same as http://www.google.com) Can I always blindly remove the trailing slash from any URL, without looking at anything? I...
<item> <guid>http://jahboo.fliggo.com/video/kPZj01cs</guid> <pubDate>Tue, 10 Mar 2009 18:31:38 -0500</pubDate> <title>How to be perverted with water proof cam</title> <author>Jennisita@fliggo</author> <link>http://jahboo.fliggo.com/video/kPZj01cs</link> <description> This vid shows how easy it is to make perverted vids with ...
I would like to open a webpage from groovy, dump the specified webpage and eventually dump the webpage behind an anchor tag. Does anybody has some sample code for this? ...
Hello, Are there any equivalent Javascript functions for Python's urllib.quote() and urllib.unquote()? The closest I've come across are escape(), encodeURI(), and encodeURIComponent() (and their corresponding un-encoding functions), but they don't encode/decode the same set of special characters as far as I can tell. Thanks, Cameron ...
like /usr/local? I tried file:///usr/local but failed [root@www2 robot]# cd file:///usr/local -bash: cd: file:///usr/local: No such file or directory ...
I've building a app right now that I'm trying to keep properly decoupled from the other apps in my Django project (feel free to lecture me on keeping Django apps decoupled, I'd be happy to learn more any/all the time). My problem is this: The get_ absolute_url() method I've written is returning a relative path based on my view. I think ...
One section of our website presents a paged randomized content. The first time a new user visits the site, she is assigned a new random seed which passed in URL's and for persistence stored also in cookies. The problem is that the seed in URL's confuses Googlebot (and other indexing services); it complains that there are too many URL's p...
I need a regular expression that detects if a given string is a url to a [potential] file ie /file.pdf http://www.whatever.com/file.docx ../file.longfileextension Thanks guys ...
Hi, I need to remove some of the headers, e.g. Accept, Accept-Language, etc. in a http request being sent from iPhone to server. NSMutableUrlRequest and CFHTTPMessageRef don't have a way to over-ride what is being sent in the header. It seems like there is no easy way to approach that. Any suggestions? Any help would be greatly appreciat...
How can we provide URL-Rewriting support for Tomcat/Java ? mod_rewrite provides this functionality for Apache and can modify URLs even before they reach the handler (e.g. PHP). Is there a similar tool in Java/Tomcat ? To be more specific we need modifications such as http://www.somedomain.com/person/1 Maps to http://www.som...
Easy. I have 2 gmails accounts and I want to open both at the same time. I have Firefox as the default browser and of course, Internet Explorer. So I want 2 desktop shorcuts to point to gmail. So if I made a shortcut to http://gmail.com, it will be opened with Firefox (because it's the default browser), so that's ok for one account. Bu...
The tutorials I'm reading say to do that, but none of the websites I use do it. Why not? ...
Hello all, I run a small e-commerce site that over the last few years has built up a reasonable search engine status. I've been working on a new site that uses new URL formats and I am worried about how to deal with all the broken links and customer frustration for users finding out dated links through search engines. Can anyone offer...
I am redesigning a site in ASP.NET MVC and as a consequence every page will have a new URL. I'm going to implement 301 permanent redirects from the old pages to the new. I'm wondering if doing this for thousands of pages all at once will have a negative effect on SEO. What about hundreds of thousands? ...
Is it possible to get the current URL that an IFrame is set to if it's loading an outside page (say, Wikipedia)? I've seen a few people say that it is impossible if it is not on your own server, but the places I've found that were 4 years old. If it is impossible, is there an easier way to display a page inside another page and still h...
I'm trying to add a URL parameter to an URL string in ActionScript. Currently I'm checking the existing URL to see if it explicitly has a "?" to determine if there are any existing parameters to determine if my parameter delimiter should be "?" or "&". Is there a library or utility method in ActionScript which could simplify the code bel...
First I'll provide a tiny code snippet here: String path = "".equals(url.getPath()) ? "/" : url.getPath(); java.io.File f = new java.io.File(path); if (!f.exists()) { this.code = 404; // http Not Found return; } Here, the URL's type is java.net.URL,and its value has this format: file:///directory1/directory2.../filename t...
Hey, I am working on a project that involves a url "forwarder" (like bit.ly or tinyurl.com, but we don't really need it to be short). For that, I need to "generate" alphanumeric strings (I explicitly want alphanumeric) to map to each url. One of the options would be generate a random string and store it somewhere. However, I'd like to ...