uri Questions

6

Solved

The scenario: I am building an app that allows the user to sign in using their Google account, it's worth noting that this is done using Firebase authentication. The problem: The user signs in p...

4

Solved

I got a strange behavior of that method: import java.net.URI URI url = new URI("https://pmi_artifacts_prod.s3.amazonaws.com"); System.out.println(url.getHost()); /returns NULL URI url2 = new U...
Helicopter asked 17/2, 2015 at 18:11

8

Solved

I have a URL. How do I retrieve its path part? For example: Given "http://www.costo.com/test1/test2", how do I get "test1/test2"?
Dabber asked 6/4, 2011 at 10:38

3

Solved

How to construct URI object with query arguments by passing hash? I can generate query with: URI::HTTPS.build(host: 'example.com', query: "a=#{hash[:a]}, b=#{[hash:b]}") which generates https:...
Farcy asked 21/10, 2015 at 10:45

2

Solved

public class Program { public static void Main() { Uri baseUri = new Uri("http://localhost:7777/BasePath/"); Uri uri = new Uri(baseUri, "/controller"); Console.WriteLine(uri); } } Is it the...
Caernarvonshire asked 13/11, 2018 at 17:8

3

Solved

I'm trying to check if a file exists prior to creating it, using DocumentFile (due to the Storage Access Framework). But DocumentFile().fromTreeUri() removes the non-existant portion of the would-b...
Apogamy asked 2/8, 2018 at 20:6

7

Solved

I've tried to figure out whether the format of an e-mail address can be said to comply with the definition of a URI or not, but I've found no explicit confirmation of this so far. I hope someone ca...
Bunkum asked 2/2, 2010 at 14:31

3

Solved

Not sure what could be the reason. Added the following in Web.config also. maxUrlLength="1024" maxQueryStringLength="1024" requestPathInvalidCharacters="" maxRequestLength="1024" relaxedUrlToFileSy...
Gipps asked 6/11, 2016 at 11:4

11

Solved

I have some URLs, like http://www.example.com/something?param1=value1&param2=value2&param3=value3 and I would like to extract the parameters from these URLs and get them in a Hash. Obvio...
Rosado asked 23/3, 2010 at 14:0

5

I have cookie value which contains round bracket " e.g: demo (1)" When I try to encode with encodeURI , the round bracket ( is not encoded to %28 , what is the alternative to encode the special cha...
Bifacial asked 8/6, 2017 at 7:22

27

Solved

I'd like to get the full file path, from a URI. The URI isn't a Image, but it's a music file, but if i do it like the MediaStore Solution, it won't work if the app user selects eg Astro as browser,...
Hyalite asked 3/11, 2012 at 13:10

6

Solved

I am trying to get the Uri from a raw file I have included in the project in the raw folder. But I am getting a FileNotFoundException, no matter what. The file is a .wav file, also tried it with a...
Measurable asked 28/5, 2013 at 11:55

6

Solved

I have this: http://127.0.0.1:8000/found-locations/?state=--&km=km I want this: found-locations/?state=--&km=km how do i do this in javascript? I tried window.location.href but it...
Fillet asked 4/5, 2013 at 16:25

3

Following is the code I have got for location redirect to SMS app when the user is on a mobile browser- window.onload = function() { window.location ="sms:12345?body=" + encodeURIComponent("TEST"...
Galvanometer asked 29/5, 2018 at 12:54

6

Solved

A subsystem which I have no control over insists on providing filesystem paths in the form of a uri. Is there a python module/function which can convert this path into the appropriate form expected...
Vivisect asked 12/5, 2011 at 11:56

11

Solved

Is there a simple way in .NET to quickly get the current protocol, host, and port? For example, if I'm on the following URL: http://www.mywebsite.com:80/pages/page1.aspx I need to return: http:/...
Matutinal asked 22/8, 2008 at 2:18

3

Solved

I have a caller app that allows the user to pick up photos for the contacts and audio files for the ringtones from their mobile. When I pick up the photo, it can be displayed correctly using the UR...
Autoclave asked 8/9, 2021 at 10:8

32

Solved

What is the difference between a URL, a URI, and a URN?
Used asked 6/10, 2008 at 21:26

32

Solved

What is the difference between a URL, a URI, and a URN?
Hodgkin asked 6/10, 2008 at 21:26

11

Solved

In my app the user is to select an audio file which the app then handles. The problem is that in order for the app to do what I want it to do with the audio files, I need the URI to be in file form...
Kane asked 14/4, 2011 at 0:54

9

Solved

I'm trying to pass a URI-Object to my Intent in order to use that URI in another activity. How do I pass a URI? private Uri imageUri; .... Intent intent = new Intent(this, GoogleActivity.class); in...
Elenaelenchus asked 5/11, 2011 at 0:57

1

I've a query string in the browser like this https://application.com/loader/?orderNumber=313Q&tracerId=PLM5689. I wanna keep the keys in the query case-insensitive i.e if the ORDERNUMBER=313Q a...
Hoarsen asked 24/5, 2019 at 17:54

9

Solved

Assuming I am given a URI, and I want to find the file extension of the file that is returned, what do I have to do in Java. For example the file at http://www.daml.org/2001/08/baseball/baseball-o...
Lammond asked 13/7, 2010 at 3:57

18

I am developing a VideoPlayer. I convert the URI of a launched intent to a string and it gives me content://media/external...... But I need to get the real path. For example: /storage/extSdcard......
Geibel asked 9/7, 2013 at 10:39

10

Solved

The HttpRequest class in Asp.Net 5 (vNext) contains (amongst other things) parsed details about the URL for the request, such as Scheme, Host, Path etc. I've haven't spotted anywhere yet that expo...
Dardanelles asked 23/1, 2015 at 23:9

© 2022 - 2024 — McMap. All rights reserved.