url

Is the anchor part of a URL being sent to a web server?

Say, there's a URL http://www.example.com/#hello Should #hello thing be sent to the web server or not, according to standards? How do modern browsers act? Update: Please do not ignore the first question. ...

Human readable URL causes a problem in Ruby on Rails

I have a basic CRUD with "Company" model. To make the company name show up, I did def to_param name.parameterize end Then I accessed http://localhost:3000/companies/american-express which runs show action in the companies controller. Obviously this doesn't work because the show method is as following: def show @company = Company...

How to quickly check large number of URLs if they're still valid (or 404/otherwise missing)

Urls are already conveniently in a text file, one line per url, so it's probably trivial curl/wget/LWP one-liner. Anybody cares to share such? ...

cURL with PHP question for logging in to https:// remote site

So I have this cURL script for remote login. It works fine for some pages but not the pages I need. For the page that isn't accessible through the script, the remote server requires the url be like this: https://sub.example.com/a/b/thisPage.aspx?aVar=%2Fa%2Fb%2Fc%2Fd%2FFile+Name.nev It seems that cURL or just php automatically conv...

i should able to launch url when button pressed with using ib

i think there may be option like launch url in ib can anybody answer it if u know,,,,, ...

Changing the address bar after a redirect using Javascript.

I'm writing an extension for Firefox that involves using a link to a site that redirects to another. After it redirects I want to alter the url in the address bar. Any ideas on how to do this? ...

twitter regex for displaying text as url but not if it is meant as text

Hi, Can someone help me to tweak this regex?? I have this regex for twitter and if I spell a word like this R@chard, it wants to turn it in an URL. On Twitter itself it is displayed correctly. Erasing the last line is maybe obvious, although I don't know much about forming regex expressions. Maybe there is also a smarter one for use w...

Normalizing uri part given base url, with PHP.

First of, I'm doing this for a web crawler (aka spider aka worm...) Given two strings (base url and relative url), I need to determine the absolute url. It is especially confusing when it comes to "SEO friendly" crap, such as: Base url: http://aaa.com/january/15/test Found url: /test.php?aaa How would I know that the above aren't fold...

How to check if a given value is a valid URL

I need some function to check is the given value is a url. I have code: <?php $string = get_from_db(); list($name, $url) = explode(": ", $string); if (is_url($url)) { $link = array('name' => $name, 'link' => $url); } else { $text = $string; } // Make some things ?> ...

wordpress custom archive page type

i'm starting with wordpress (from a drupal background) and trying to figure out how to create a new "menu" or url pattern. not quite sure what the lingo is in wordpress so im having a little trouble searching online for it. the current archive allows you to sort by: /post/date/2010/06 what i'm trying to do is extend the archive functio...

Remote Javascript Execution in a Local HREF

I have been trying to locate an example of remote Javascript execution from a local HTML 'a' tag. This is not going to be a malicious execution. On my index page, I use Javascript to hide divs and bring a single div to the front - in order to have multiple pages on one (in a nutshell). I typically do this using the following example snip...

ASP.NET 4 - URL Routing not working

Hi all, I have a asp.net 3.5 web site.I changed framework version from 3.5 to 4 for URL routing but routing doesn't work.I'm getting http 404 error.My codes are like this (In Global.asax) void Application_Start(object sender, EventArgs e) { RouteTable.Routes.Add("product", new Route("product/{kind}", new PageRouteHandler("~/produ...

ASP.NET routing: http://mywebapp/##ID## to http://mywebapp/Custs/Customer.aspx?id=##ID##

I'd like to redirect the URL hxxp://mywebapp/##ID## to hxxp://mywebapp/Custs/Customer.aspx?id=##ID##. What is the easiest way using ASP.NET 3.5 routing to do it? Thanks. ...

Tomcat session management - url rewrite and switching from http to https

I'm an old hand at C but a raw newbie at Java/Tomcat. I'm fine with Tomcat session management in http alone. Its when I've come to look at switching to https that I've had problems. I gather for Tomcat that you have to start with an http session if you want to maintain a session as you switch from http to https and back to http. This ...

Google chart display problem

Can you point out what is wrong in following query? (Please copy and paste URL) http://chart.apis.google.com/chart?cht=p3&amp;chs=550x200&amp;chd=t:970,134,57,28,51,11,6&amp;chl=Instant(970)|Below1Min(134)|Above1MinandBelow5Min(57)|Above5MinandBelow10Min(28)|Above10MinandBelow30Min(51)|Above30MinandBelow1Hr(11)|Above1HrsandBelow3Hrs(6) ...

how to send array values through url in PHP?

how to send array through url in PHP? I have an array of product ids i want to use these id through url because this is the osCommerce needs it in which i am working in, how can i do it? Generally osCommerce asks for the single product insertion which in turn gives me back a product id which i pass into the url and get it in shopping c...

Get modified date of web resource in Java

How do you get the modified date of a web resource in Java? URL url = new URL(urlString); URLConnection connection = url.openConnection(); connection.connect(); // What now? ...

Assistance with URL structure for accept/decline links

Hi all, I am in the process of creating an app in which a customer can add email addresses to an event. This means that each email address is sent 2 urls via email when added to the list, 1 url to accept and the other to decline. The url is made up of a number of query parmatters, id's etc. The issue I have is that I want to prevent t...

Possible to use slash (/) instead of hash (#) without page refresh window.location?

I use 'window.location.hash' to add '#something' to the URL without refreshing the page. I want to know how to do the same but using a slash (/) instead of hash (#). Why? I have navigation tabs and I use a jQuery and Ajax to dynamically load the data. When javascript is enabled, '#something' is added to the end of the URL to get the da...

$_GET variable cannot identify the first array element.

$_GET variable cannot identify the first array element.: I have passed an array in url which looks like this http://www.example.com/form.php?action=buy_now&amp;ft=prf&amp;Arrayproducts_id[]=431&amp;products_id[]=432&amp;Arraycart[]=1&amp;cart[]=3&amp;Arrayid[]=431&amp;id[]=432 but when i print the array "products_id" and "cart" by...