url

Can I create a clean URL using WebBroker and Delphi ?

Hi, Can I create a clean URL for WebBroker webpages/applications ? A typical WebBroker URL normally looks like: hxxp://www.mywebsite.com/myapp.dll?name=fred or hxxp://www.mywebsite.com/myapp.dll/names/fred What I would prefer is: hxxp://www.mywebsite.com/names/fred Any idea how I can achieve this with Delphi/WebBroker ? (ISAPI/Ap...

How to do advanced URL parsing with RegEx?

I'm using the following method to parse URLs: Regex.Replace(text, @"((www\.|(http|https|ftp)\://)[.a-z0-9-]+\.[a-z0-9\/_:@=.+?,##%&~-]*[^.|\'|\# |!|\(|?|,| |>|<|;|\)])", "<a href=\"$1\" target=\"&#95;blank\">$1</a>", RegexOptions.IgnoreCase).Replace("href=\"www.", "href=\"http://www."); It works great, but:...

How to verify if a String in Java is a valid URL

How can i check, if a string is an url in java? ...

php find characters in url

I want to use php to search the current url for com_agora and if it finds it to display something and if it doesn't to display something else the problem is there can be lots of characters after com_agora in the url an example would be this com_agora&task=cat_view&gid=41&Itemid= so how would I tell it find it while not caring what ch...

In ASP.NET, what is the quickest way to get the base URl for a request?

Is there a fast way to get the scheme, host, port (only if not 80) and application path in ASP.NET? As far as I know, I need to assemble the following pieces: Request.Url.Scheme Request.Url.SchemeDelimiter Request.Url.Authority (although that will probably always include the port even when it's 80) Request.ApplicationPath Isn't ther...

How can I change the folder of my URL with JQuery?

Let's get to the point, when at this site mysite.com/en/index.html or mysite.com/en/model1/index.html and clicking on an <a href="swap current url to /FR/...">FR</a> (or country flag img) What should I do to load this other page? mysite.com/fr/index.html or mysite.com/fr/model1/index.html I know urlParser JQUery plugin for getti...

Matching loosely formed urls using regex and php ?

Hi, I'm trying to identify urls in a set of text. However I would like to be able to identify loosly formed urls such as : example.com www.example.com I'm not very good at regex :( I found patter below but unfortunately it requires the scheme. /(([[:alnum:]]+:\/\/)|www\.)([^[:space:]]*)([[:alnum:]#?\/&=])/i Would it be possible t...

Is it possible to localize a URL / routing in ASP.NET MVC?

I'm working with a client that wants the URLs in our web application to be in French. I'm an English developer and we also have English clients. This is an interesting problem but I don't think its something the ASP.NET MVC Framework would support. Here's the scenario. The route... Specific EXAMPLE English URL www.stackoverflow.com/...

best way to deal with paths after url rewriting

I've tried to rewrite my current urls to nicer looking, but encountered a problem with broken relative paths (css/javascripts/img tags and so on)... I wonder what is the best way to fix the broken paths? After reading, I see that probably the best way is just to make all of them absolute (like http:// myhost.com / stylesheets / style.css...

htaccess rewrite is giving me 500 error?

i have this url that i wanted to make friendly, using rewrite on .htacess but it gives me an error(500 internal server error), this is my orginal php url http://www.example.com/viewtopic.php?topic=lovetopic i want to change it to this: http://www.example.com/lovetopic this is my whole htaccess code is this: RewriteEngine On Rewrit...

jQuery URL parser plugin fails on '@' in query string - What URL parsing regex will work?

Background I use the jQuery URL parser plugin by Mark Perkins for extracting query string values from the current URL. The parsing process fails when query string values contain the '@' character, most notably when there is an email address in the query string. This is in reference to the latest version of the plugin, taken from the gi...

It is possible for my Rails App knows under wich context of HTTP is running?

In certain situations I run my app in a context like: /context/app , but sometimes I only use: /app In my DB I have an applications table that has an attribute for the path of the application (ex. /app ), what Im looking is that my app could determine in wich context is running in order to update that attribute (ex. /context/app) I th...

Able to remove one word from URL? ISAPI_Rewrite httpd.ini question

I'm using ISAPI_Rewrite, Windows server 2008. Currently I am rewriting URLs to httpd.ini like this: RewriteRule /this-is-my-super-fancy-url/([^/]+)? /foobar/index.html?nid=10$1 Problem is, now we need to remove certain words from the URL, yet still have the request filled. For instance, in the example above if I needed to remove the...

#! In a URL, what does it mean ?

Possible Duplicate: What's the shebang (#!) in Facebook and new Twitter URLs for? #! What does it mean in a URL ? I found it in facebook & twitter url ! http://www.facebook.com/#!/ http://www.facebook.com/#!/?sk=messages http://www.facebook.com/#!/?sk=ff&amp;ap=1 http://twitter.com/#!/messages http://twitter.com/#!/BillGates...

Opening a Internet Explorer browser window to a specific URL in C#

hi, I need to do program in c# which opens an internet page and after the page finish to load ("done") , I need to take a timestamp to see how much time it took. How can I do this? ...

URL design technique

My friend designed url tag like : www.aaaa.com/?page=4 in my asp.net mvc2 project, But i want to change my URL like www.aaaa.com/4 so i want to delete ?page tags from my URL. What can i do ? Thanks ...

get parameter from url and save the parameter in other links on the same page

Hi all, I have a problem and i need some help please. I have this page with a parameter http://www.webxpress.com/landingpage.asp?label=CSU... Now in this page i have 3 buttons with the following links: www.webxpress.com/button1.asp www.webxpress.com/button2.asp www.webxpress.com/button3.asp All i want is to add the parameter in the but...

Resolving relative URLs in JavaScript

I'm building a JS library which has a requirement of looking at form[action] and a[href] values and resolving them into absolute URLs. For example, I'm on http://a/b/c/d;p?q and encounter an href value of "../g" (assume there's no <base> element). The resulting absolute would be: http://a/b/g. Is there a JS library that does this alre...

Why/how would a domain URL show client's localhost address?

I was trying to go to http://lustiges-taschenbuch.de which is a valid comic book site. I mistyped the address as http://lustigestaschenbuch.de and was surprised to see my own apache localhost directory (!). This happens on two computers in Windows 7. I checked my c:\windows\system32\drivers\etc\hosts file but it has nothing listed. I...

ASP.net - Regular Expression to add an attribute

I need to find the most optimal solution using Regex to find URL's inside a block of HTML and add a new attribute Name="true" inside the tag. Below is an example of HTML (which can contain embedded JS), I just need to add the new attribute Name="true" to any URL and NOT effect any embedded JS file. Example HTML : <HTML> <a href...