tagged [url]

Get the values from the "GET" parameters (JavaScript)

Get the values from the "GET" parameters (JavaScript) I have a URL with some GET parameters as follows: I need to get the whole value of `c`. I tried to read the URL, but I got only `m2`. How do I do ...

6 Oct at 15:36

How to parse user credentials from URL in C#?

How to parse user credentials from URL in C#? I have a link in this format: How to get `user` and `pass` from this URL?

11 Jun at 01:23

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

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

Get URL parameters from a string in .NET

Get URL parameters from a string in .NET I've got a string in .NET which is actually a URL. I want an easy way to get the value from a particular parameter. Normally, I'd just use `Request.Params["the...

2 Apr at 06:13

How to download image from URL

How to download image from URL Is there a way to download an image directly from a url in c# if the url does not have an image format at the end of the link? Example of URL: I kno

2 Mar at 19:43

Getting absolute URLs using ASP.NET Core

Getting absolute URLs using ASP.NET Core In MVC 5, I had the following extension methods to generate absolute URLs, instead of relative ones: ``` public static class UrlHelperExtensions { public sta...

14 Jan at 13:4

What are the safe characters for making URLs?

What are the safe characters for making URLs? I am making a website with articles, and I need the articles to have "friendly" URLs, based on the title. For example, if the title of my article is `"Art...

13 Jan at 22:6

How can I dynamically switch web service addresses in .NET without a recompile?

How can I dynamically switch web service addresses in .NET without a recompile? I have code that references a web service, and I'd like the address of that web service to be dynamic (read from a datab...

13 Jan at 13:35

Parsing query strings on Android

Parsing query strings on Android Java EE has [ServletRequest.getParameterValues()](http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html). On non-EE platforms, [URL.getQuery(...

8 Dec at 11:39

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 to encode URL parameters?

How to encode URL parameters? I am trying to pass parameters to a URL which looks like this: And I want to pass the parameters such as an image URL which is generated itself by another API, and the li...

2 Aug at 21:8

Why my coreWebView2 which is object of webView2 is null?

Why my coreWebView2 which is object of webView2 is null? I am creating a object of Microsoft.Web.WebView2.WinForm.WebView2 but the sub obect of this coreWebView2 is null ``` Microsoft.Web.WebView2.Win...

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

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

Show image from URL with Xamarin.Forms

Show image from URL with Xamarin.Forms I am using this code to show image from an URL ### .xaml ```

4 Jul at 00:53

How can I create a friendly URL in ASP.NET MVC?

How can I create a friendly URL in ASP.NET MVC? How do I generate friendly URLs within the ASP.NET MVC Framework? For example, we've got a URL that looks like this: The 1 is Id of the study level (Hig...

GETting a URL with an url-encoded slash

GETting a URL with an url-encoded slash I want to send a HTTP GET to `http://example.com/%2F`. My first guess would be something like this: Unfortunately, I can see that what is actually sent on the w...

20 Jun at 09:12

What's the best way to create a short hash, similar to what tiny Url does?

What's the best way to create a short hash, similar to what tiny Url does? I'm currently using MD5 hashes but I would like to find something that will create a shorter hash that uses just `[a-z][A-Z][...

20 Jun at 09:12

Apache RewriteRule .* index.php [NC,L] Not working

Apache RewriteRule .* index.php [NC,L] Not working I am trying to redirect everything to a single page from my /website/folder/ directory. I added a simple .htaccess with this simple code (I know this...

Url.Action parameters?

Url.Action parameters? In listing controller I have, In ASPX page I call, ```

19 Jun at 14:24

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

How to convert URL parameters to a JavaScript object?

How to convert URL parameters to a JavaScript object? I have a string like this: How can I convert it into a JavaScript object like this?

How to specify a local file within html using the file: scheme?

How to specify a local file within html using the file: scheme? I'm loading a html file hosted on the OS X built in Apache server, within that file I am linking to another html file in the same direct...

22 May at 12:9

Automatically generate lowercase dashed routes in ASP.NET Core

Automatically generate lowercase dashed routes in ASP.NET Core ASP.NET Core uses CamelCase-Routes like [http://localhost:5000/DashboardSettings/Index](http://localhost:5000/DashboardSettings/Index) by...