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...