tagged [url]

Download Returned Zip file from URL

Download Returned Zip file from URL If I have a URL that, when submitted in a web browser, pops up a dialog box to save a zip file, how would I go about catching and downloading this zip file in Pytho...

16 Mar at 16:18

How to write regular expression to match only numbers, letters and dashes?

How to write regular expression to match only numbers, letters and dashes? I need an expression that will only accept: - - - Spaces are not allowed either. Example: The regular expression should matc...

9 Sep at 19:38

How to get the anchor from the URL using jQuery?

How to get the anchor from the URL using jQuery? I have a URL that is like: How can I get the `a_1` anchor value using jQuery and store it as a variable?

19 Jul at 04:39

c# razor url parameter from view

c# razor url parameter from view Why does `Request["parameterName"]` returns null within the view? I know I can get it from the controller but I have to make a little check in the View. I am using ASP...

29 Jun at 23:1

How do I get the different parts of a Flask request's url?

How do I get the different parts of a Flask request's url? I want to detect if the request came from the `localhost:5000` or `foo.herokuapp.com` host and what path was requested. How do I get this inf...

28 Jul at 20:50

How can I percent-encode URL parameters in Python?

How can I percent-encode URL parameters in Python? If I do 1. It doesn't encode / to %2F (breaks OAuth normalization) 2. It doesn't handle Unicode (it throws an exception) Is there a better library?

19 Nov at 15:44

How to get the size of a file in MB (Megabytes)?

How to get the size of a file in MB (Megabytes)? I have a zip file on a server. How can I check if the file size is larger than 27 MB?

30 Nov at 22:10

How can I enable "URL Rewrite" Module in IIS 8.5 in Server 2012?

How can I enable "URL Rewrite" Module in IIS 8.5 in Server 2012? I have windows server 2012 and I have installed the IIS 8.5 but I could not see the URL rewrite module. How can I enable or install?

Google Appengine URL security

Google Appengine URL security Is it possible to ensure that GET/POST requests to a particular url of my Appengine app, AJAX or not, can only be made from within the app and not from outside (ie) all r...

20 Oct at 12:31

Passing array in GET for a REST call

Passing array in GET for a REST call I have a url to fetch appointments for a user like this: How should the url look like if I want to get appointments for multiple users? should it be: Thanks, Chris...

Linking to a specific part of a web page

Linking to a specific part of a web page How do I create a link to a part of long webpage on another website that I don't control? I thought you could use a variant of the #partofpage at the end of my...

12 Sep at 10:34

What is the difference between a URI, a URL, and a URN?

What is the difference between a URI, a URL, and a URN? What is the difference between a [URL](http://en.wikipedia.org/wiki/Uniform_Resource_Locator), a [URI](http://en.wikipedia.org/wiki/Uniform_Reso...

6 Aug at 23:46

How to Change ASP.NET MVC Controller Name in URL?

How to Change ASP.NET MVC Controller Name in URL? If we have we can change it in url using So, i want to do this for controller name. I can do this: ControllerName > > in URL: I would like to change ...

25 Aug at 05:51

how to parse out image name from image url

how to parse out image name from image url If I have any URL with an image file at the end, such as: And I want to get: What is the best way to do this in C#?

2 Dec at 15:48

How do I get the YouTube video ID from a URL?

How do I get the YouTube video ID from a URL? I want to get the `v=id` from YouTube’s URL with JavaScript (no jQuery, pure JavaScript). ## Example YouTube URL formats `http://www.youtube.com/watch?v=u...

11 Aug at 01:52

URLEncoder not able to translate space character

URLEncoder not able to translate space character I am expecting to output: `Hello%20World` (20 is ASCII Hex code for space) However, what I get is: `Hello+World` Am I using the wrong method? What is t...

24 Oct at 17:43

does Request.Querystring automatically url decode a string?

does Request.Querystring automatically url decode a string? I'm working with a page where I have a url like: /directory/company/manufacturer Using some re-write rules this gets re-written testing with...

24 Jan at 23:37

how to browse to a external url from turbogears/cherrypy application?

how to browse to a external url from turbogears/cherrypy application? I am writing a tinyurl clone to learn turbogears. I am wondering how do i redirect my browser to the external website (say www.yah...

Get the path with query string on the current http request in PHP

Get the path with query string on the current http request in PHP I need to get the path with query string from the URL of the current request. For example, if the current URL is: I would want this:

20 Dec at 14:27

What is the best regular expression to check if a string is a valid URL?

What is the best regular expression to check if a string is a valid URL? How can I check if a given string is a valid URL address? My knowledge of regular expressions is basic and doesn't allow me to ...

29 Dec at 17:3

Get HTML code using JavaScript with a URL

Get HTML code using JavaScript with a URL I am trying to get the source code of HTML by using an [XMLHttpRequest](https://en.wikipedia.org/wiki/XMLHttpRequest) with a URL. How can I do that? I am new ...

Get URL query string parameters

Get URL query string parameters What is the "less code needed" way to get parameters from a URL query string which is formatted like the following? > www.mysite.com/category/subcategory?myqueryhash Ou...

21 Oct at 06:9

HttpURLConnection timeout settings

HttpURLConnection timeout settings I want to return false if the URL takes more then 5 seconds to connect - how is this possible using Java? Here is the code I am using to check if the URL is valid ``...

23 Feb at 09:38

Check if URL has certain string with PHP

Check if URL has certain string with PHP I would like to know if some word is present in the URL. For example, if word car is in the URL, like www.domain.com/car/ or www.domain.com/car/audi/ it would ...

12 Jul at 01:0

How to get URL parameter using jQuery or plain JavaScript?

How to get URL parameter using jQuery or plain JavaScript? I have seen lots of jQuery examples where parameter size and name are unknown. My URL is only going to ever have 1 string: I just want to det...

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