tagged [url]

Encode URL in JavaScript

Encode URL in JavaScript How do you safely encode a URL using JavaScript such that it can be put into a GET string? I assume that you need to encode the `myUrl` variable on that second line?

27 Nov at 22:10

How can I get a specific parameter from location.search?

How can I get a specific parameter from location.search? If I had a URL such as How would I write a JavaScript function to grab the variable and see if it contains anything? I know it can be done with...

19 Dec at 21:2

What's the difference between Request.Url.Query and Request.QueryString?

What's the difference between Request.Url.Query and Request.QueryString? I have been tracking down a bug on a Url Rewriting application. The bug showed up as an encoding problem on some diacritic char...

How to use Url.Action() in a class file?

How to use Url.Action() in a class file? How can I use Url.Action() in a class file of MVC project? Like: ``` namespace _3harf { public class myFunction { public static void CheckUserAdminPane...

1 Jan at 14:5

How to get domain name from URL

How to get domain name from URL How can I fetch a domain name from a URL String? ### Examples: ``` +----------------------+------------+ | input | output | +----------------------+-----------...

22 Apr at 07:1

Unescape an escaped url in c#

Unescape an escaped url in c# I have urls which is escaped in this form: I want to convert it to unescaped form is this the same thing as escapped html? how do i do this? thanks

12 Jul at 15:31

How to add url parameter to the current url?

How to add url parameter to the current url? Currently I'm at and I want to make a link to by not defining the current url. Like `Like`. However this last one shows me `http://example.com/&like=like`

16 Mar at 14:41

How to create query parameters in Javascript?

How to create query parameters in Javascript? Is there any way to create the for doing a in JavaScript? Just like in Python you have [urllib.urlencode()](http://web.archive.org/web/20080926234926/http...

13 Oct at 20:45

URL query parameters to dict python

URL query parameters to dict python Is there a way to parse a URL (with some python library) and return a python dictionary with the keys and values of a query parameters part of the URL? For example:...

1 Sep at 13:55

Uri.TryCreate returns true for any string value?

Uri.TryCreate returns true for any string value? I'm trying to validate a Uri using the Uri.TryCreate method and when I called it with an invalid string, the method returned true. Any ideas why? My co...

12 Nov at 02:58

InputStream from a URL

InputStream from a URL How do I get an InputStream from a URL? for example, I want to take the file at the url `wwww.somewebsite.com/a.txt` and read it as an InputStream in Java, through a servlet. I'...

21 Aug at 03:25

Get host domain from URL?

Get host domain from URL? how to get host domain from a string URL? GetDomain has 1 input "URL", 1 Output "Domain" Example1 Example2 Example3

8 Jan at 10:42

Get subdomain and load it to url with greasemonkey

Get subdomain and load it to url with greasemonkey I am having the URL [http://somesubdomain.domain.com](http://somesubdomain.domain.com) (subdomains may vary, domain is always the same). Need to take...

15 Aug at 20:7

How to get the previous url using PHP

How to get the previous url using PHP Suppose my site's url is given as hyperlink on some page on the internet; that page could be anything on internet - blog, orkut, yahoo, even stackoverflow etc, an...

11 Aug at 13:15

How can I parse HTTP urls in C#?

How can I parse HTTP urls in C#? My requirement is to parse Http Urls and call functions accordingly. In my current implementation, I am using nested if-else statement which i think is not an optimize...

24 Nov at 01:12

Generic htaccess redirect www to non-www

Generic htaccess redirect www to non-www I would like to redirect `www.example.com` to `example.com`. The following htaccess code makes this happen: But, is there a way to do this in a generic fashion...

Change URL and redirect using jQuery

Change URL and redirect using jQuery I have some code like this, and now I want to redirect like this, Is there anyway in jQuery to solve this? It still lets me have `url = http://example.com`.

14 Apr at 13:26

How can I include special characters in query strings?

How can I include special characters in query strings? URL `http://localhost/mysite/mypage?param=123` works fine. However, if I want to put some special characters in `param`, like `?`, `/`, `\`, then...

10 Jul at 09:19

How do I generate a Friendly URL in C#?

How do I generate a Friendly URL in C#? How can I go about generating a Friendly URL in C#? Currently I simple replace spaces with an underscore, but how would I go about generating URL's like Stack O...

1 Sep at 11:55

Encode URL with dot

Encode URL with dot I need to encode a url that contains a dot character ".". It's a ASP.NET MVC routing, but the url contains a ".". Is there a way? For example, I'm trying to get this url: "/Product...

how to attach url link to an image?

how to attach url link to an image? I am creating an website. It contains videos of different places. Now my problem is i need integrate an image on that with url link. when user taps on that link it ...

6 Nov at 10:36

JavaScript - Get Portion of URL Path

JavaScript - Get Portion of URL Path What is the correct way to pull out just the path from a URL using JavaScript? Example: I have URL [http://www.somedomain.com/account/search?filter=a#top](http://w...

4 Aug at 16:4

Redirect to external URI from ASP.NET MVC controller

Redirect to external URI from ASP.NET MVC controller I'm trying to redirect to external url from an action method but can't get it to work. Can anybody shed some light on my error? ``` public void ID(...

21 Oct at 10:51

.htaccess help - not working

.htaccess help - not working I want to rewrite all .php into .html,,, so i created a `.htaccess` file and added but when it seems not working... here i uploaded all files - [http://www.fellowindian.co...

7 Dec at 17:37

What is the difference between URI, URL and URN?

What is the difference between URI, URL and URN? What's the difference between an URI, URL and URN? I have read a lot of sites (even Wikipedia) but I don't understand it. URI: [http://www.foo.com/bar....

6 Feb at 12:48