tagged [uri]
Uri constructor with dontEscape is obsolete, what is alternatieve?
Uri constructor with dontEscape is obsolete, what is alternatieve? My question is regarding passing an URL to HttpWebRequest without escaping, I searched the forums and internet, but I didn't find a g...
- Modified
- 7 Dec at 08:6
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
- Modified
- 8 Jan at 10:42
Send a base64 image in HTML email
Send a base64 image in HTML email Using a rich-text editor, our users can drag and drop a saved image from their desktop to the editor. The image appears and displays properly in the web page after th...
- Modified
- 26 Apr at 18:12
Get domain name of a url in C# / .NET
Get domain name of a url in C# / .NET The code: gives me "subdomain.website.com" But I need the main domain "website.com" for any url or web link. How do I do that?
Convert String to Uri
Convert String to Uri How can I convert a String to a Uri in Java (Android)? i.e.:
Changing the scheme of System.Uri
Changing the scheme of System.Uri I'm looking for canonical way of changing scheme of a given [System.Uri](http://msdn.microsoft.com/en-us/library/system.uri.aspx) instance with [System.UriBuilder](ht...
So what IS the right direction of the path's slash (/ or \) under Windows?
So what IS the right direction of the path's slash (/ or \) under Windows? It seems Windows insists on writing a backslash `\` in file paths, whereas .NET's URI class writes them with a slash `/`. Is ...
Replace host in Uri
Replace host in Uri What is the nicest way of replacing the host-part of an Uri using .NET? I.e.: ``` string ReplaceHost(string original, string newHostName); //... string s = ReplaceHost("http://oldh...
Is there a right way to build a URL?
Is there a right way to build a URL? In much of the code I work with there is horrible stuff like: or - even worse: Is there a rig
Is embedding background image data into CSS as Base64 good or bad practice?
Is embedding background image data into CSS as Base64 good or bad practice? I was looking at the source of a greasemonkey userscript and noticed the following in their css: ``` .even { background: #ff...
- Modified
- 29 Nov at 12:21
Get just the domain name from a URL?
Get just the domain name from a URL? I am trying to extract just the domain name from a URL string. I almost have it... I am using URI I have a string.. my first thought was to use Regex but then i de...
Add Whatsapp function to website, like sms, tel
Add Whatsapp function to website, like sms, tel I have a website that a lot of people view on mobile. I have link for : Call and SMS and I want to add one for Whatsapp, so a user can click the whatsap...
- Modified
- 30 Jan at 13:17
C# The provided URI scheme 'http' is invalid; expected 'https'
C# The provided URI scheme 'http' is invalid; expected 'https' I am getting this error while invoking a method of my web service, I dont know what to do anymore :s Here is the exception details: > {"T...
- Modified
- 14 Feb at 13:35
Is there any way to specify a suggested filename when using data: URI?
Is there any way to specify a suggested filename when using data: URI? If for example you follow the link: `data:application/octet-stream;base64,SGVsbG8=` The browser will prompt you to download a fil...
- Modified
- 9 Mar at 15:13
Create new URI from Base URI and Relative Path - slash makes a difference?
Create new URI from Base URI and Relative Path - slash makes a difference? does a slash make difference when using [new URI(baseUri, relativePath)](http://msdn.microsoft.com/en-us/library/9hst1w91(v=v...
- Modified
- 20 Mar at 20:4
Why is it that "No HTTP resource was found that matches the request URI" here?
Why is it that "No HTTP resource was found that matches the request URI" here? I have code in my controller like so: ...and I'm calling it via Postman like so: .
- Modified
- 17 Jul at 21:43
ServiceStack URI encoding
ServiceStack URI encoding I'm using ServiceStack for a while now and I'm very happy with the functionality it provides. Already implemented serveral services with it and it works like a charm. Recentl...
- Modified
- 24 Nov at 09:56
Getting exact domain name from any URL
Getting exact domain name from any URL I need to extract the exact domain name from any Url. For example, Url : [http://www.google.com](http://www.google.com) --> Domain : google.com Url : [http://www...
Convert file path to a file URI?
Convert file path to a file URI? Does the .NET Framework have any methods for converting a path (e.g. `"C:\whatever.txt"`) into a file URI (e.g. `"file:///C:/whatever.txt"`)? The [System.Uri](https://...
How to implement my very own URI scheme on Android
How to implement my very own URI scheme on Android Say I want to define that an URI such as: must be handled by my own application, or service. Notice that the scheme is `"myapp"` and not `"http"`, or...
- Modified
- 15 Aug at 10:14
servicestack pass forward slash in uri
servicestack pass forward slash in uri I'm using servicestack to build a web api serving some old data over the web. Unfortunately the data schema does not lend itself particularly well to the standar...
- Modified
- 9 Sep at 17:48
Registering an Application to a URI Scheme in windows 10
Registering an Application to a URI Scheme in windows 10 A few years back I developed a Silverlight Component called from within an ASP.net web app, that uses PInvoke to access a USB (Serial COM port)...
- Modified
- 21 Sep at 11:57
Add scheme to URL if needed
Add scheme to URL if needed To create a Uri from a string you can do this: But the problem is if the string (like the one above) doesn't contain the protocol you will get an exception: "`Invalid URI: ...