Questions tagged [uri]

A Uniform Resource Identifier (or URI) is a string of characters used to identify a name or resource. URI is legacy terminology. In most cases, the term URL should be used instead.

1
vote
0answers
16 views

How do I get the full absolute path from the URI returned by ACTION_OPEN_DOCUMENT? [duplicate]

@Anonymous's answer was really useful to get the full absolute path of a tree URI (ACTION_OPEN_DOCUMENT_TREE). Similarly, I'd like to get the full absolute path of the URI returned from ...
1
vote
0answers
15 views

How to change redirect uri? Django - Allauth

I am trying to use Allauth to authenticate with google however I get a uri mismatch error. The app is currently on a development server with a domain ex. live.example.com. I can change the domain ...
0
votes
0answers
21 views

Ways to turn a string into an uri

there's any other way to turn a string into an uri without using implementation 'androidx.core:core-ktx:1.0.0-rc01' ?? this implementation is not compatible with android-support ...
-1
votes
1answer
39 views

Is there a name for the dots and forward slashes (i.e. “./”, “../”, “../../”, etc.) at the beginning of relative file paths? What is it?

For clarification, I'm just talking about relative file paths that also include a directory or filename in them, for example ../../some_directory/my_file.ext. I understand that ./ is current directory ...
1
vote
2answers
55 views

How to get the docker host URI on my localhost

Is there a command that I can evaluate (eval $COMMAND) or an environment variable that I can inspect to get the URI of the locally running docker host? I need to be this an expression to evaluate at ...
1
vote
2answers
25 views

How do I open a link from an NFC tag?

I want to write a NFC tag that opens a specific note in Google Keep when touched. I have an URL in the form of https://keep.google.com/u/0/#LIST/<id> that does the desired action of opening the ...
0
votes
1answer
32 views

Is there a way to implement proper links using `<a href=“/”>` with github pages?

How can I make <a href="/"> redirect to https://[username].github.io/[repo] instead of https://[username].github.io/ with github pages? When serving my multi-page html website, I get a 404 - ...
0
votes
0answers
16 views

Download a zip file from a URI with authentication and navigation through mutiple staging URLs

with zero experience in writing code to access URLs, below is my attempt to solve my problem so please bear with me. To explain the scenario - I am trying to automate the process of downloading a zip ...
1
vote
0answers
29 views

Avoid URI validation for http call in java

I have http call where query parameter should contain JSON with symbols like { } [ ] not encoded. Url example: http://server.com?queryParam={%22address1%22%3A%2277+tehama%22%2C%} in this case { } ...
-1
votes
0answers
7 views

how to get real path keyboard sticker content uri

i need to know how to share keyboard sticker from content uri or how to get real path to share it enter image description here
0
votes
0answers
44 views

Open word on local computer - Office URI Schemes special characters

I want to open word-documents by clicking on a link in my solution. The link below shows how it is structured in ofe for office. This solution is really nice because it works in every browser but i ...
0
votes
0answers
23 views

I want to redirect on login page when the session is expired in angular and nodejs

I have written code for session-tracking but also i want that after giving message"session time out." redirect to login page for re-login the application. I expect the login page when session is ...
-1
votes
0answers
12 views

Wrong Uri path after open a file with Intent

I'm having troubles when I open a file in my app. I do an Intent so I can open file via system's file. But I can not receive the right path of the file that I opened. I am working with a Rugged ...
0
votes
0answers
11 views

URI scheme vs protocol

A common definition of URI is that it is a string in format scheme:[//authority]path[?query][#fragment] (from Wikipedia: https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Definition). So the ...
-2
votes
0answers
37 views

How to fix the Uri parsing error as it cause the unable of setImageUri?

I am the newbie in Android. I want to get the sting extra and try to parse the string to uri. Then, I setImageUri in an ImageView. However, the imageview does not show anything. I think the parsing of ...
0
votes
0answers
14 views

How to force nginx to use certain URI under / path

I have a project which is a code base for all domains, e.g. domainA.com, domainB.com and domainC.com. In localhost I can access them by: http://localhost/domainA (homepage of domainA) http://...
1
vote
1answer
21 views

Redirect all specific urls to the previous folder

I have a site with more than 35,000 pages on WordPress but the problem is that I didn't know that automatically a "feed" page was created for each page/categories/posts. I have disabled this feature ...
0
votes
0answers
31 views

How to fix DOMException: “The URI is malformed.” in Angular 6 running HTTP?

Solution Update: Destination URL was wrongly constructed, using double colon operator (::) between IP Address and Operator instead of one, which caused the issue. I have a project running on MEAN ...
0
votes
0answers
16 views

Regex Uri Updating the URL to undefined

Hi im trying to learn something about Regex and HTML.Grid I Added an updateQuerystringparameter in my Jquery scripts everytime i Close a modal window to retain the parameters and Causes my parameter ...
2
votes
1answer
19 views

Android assets, how can I read a file from a subfolder?

The code below works: it reads a file named "file.txt" which is located in the "assets" folder of the APK and stores it in a buffer. So far, so good: String u = "content://com.example.app/file.txt:...
0
votes
0answers
15 views

Get full path file in android device using Uri of “content://com.android.providers.downloads.documents/document/6673” format [duplicate]

I have been trying to build an app where I handle PDFs. I am using a library on GitHub which enables you to use PDFBox in android. So for this, the initial step is to make PDDocument using a local pdf ...
0
votes
1answer
35 views

How to set ImageView URI with URI String?

I have an app where a user can find an image from the gallery and it will be shown on the screen through a button click. The user can exit the app and the image they chose can be saved, so when they ...
-1
votes
1answer
19 views

Retrieve uri to xml/svg and show in ImageView

i've two files in a Firebase Storage: trophy-color.svg trophy-color.xml my xml is the xml generated with "New vector asset", from svg. i want to get anyone of these files from storage and put they ...
0
votes
0answers
6 views

MS-Excel protocol: space in URI not decoded

I need to open Excel files from the browser. This is in a safe intranet environment, no security issues here. Files are Until now I used Internet Explorer in combination with Active-X for this but ...
0
votes
1answer
18 views

Dart URI: multiple query parameters with the same key

I'm using Mapquest directions API and my goal is to create a route between a bunch of map points (3 and more). Here is the API spec for "to" parameter of the endpoint that's used to fetch a route for ...
0
votes
1answer
14 views

XPath: encode-for-uri() but keep characters allowed in IRIs unencoded

XPath has the function encode-for-uri() that makes a string safe for use in a URI path segment: encode-for-uri('AC/DC') => AC%2FDC But it also %-encodes international characters: encode-for-uri('...
2
votes
1answer
54 views

Why can't we use random strings instead of URI's for XML namespaces?

I'm trying to understand the reasons of the XML-namespaces convention (using URI for namespaces). I've read this thread on StackOverflow. I understand that namespace's fullname should be unique. But ...
0
votes
1answer
17 views

Is URI if form “scheme:/path” valid?

I used this code to create URI in Java: new URI(/*scheme*/ "scheme", /*host*/ null, /*path*/ "/42", /*fragment*/ null); When I convert this URI to string, I get scheme:/42. Is URI in format scheme:/...
0
votes
1answer
18 views

How to use PathCreateFromUrlA API

I need to convert a uri path like file:///C:/test folder/file.text to windows style path C:/test folder/file.text. For that, I am trying to use PathCreatesFromUrlA API using the following code but I ...
0
votes
0answers
20 views

Load URL from ImageView

I need to load a URL inside my app with the click of an ImageView. I get the app to load until I start trying to assign intents (on the MainActivity.java) to my ImageViews (on activity_main.xml). I ...
0
votes
0answers
30 views

How to Send HTTP Request include dash - Avoid Invalid URI Exception

All, I am trying to send to paypal a http get request to obtain my security token but I received this exception: https://pilot-payflowpro.paypal.com -s --insecure -d PARTNER= -d VENDOR= -d USER= -d ...
0
votes
0answers
18 views

How to turn a chosen select/option field in jsp into a variable without submitting a form?

I have a basic select in jsp <select name="tableName"> <c:forEach var="valuesInRow" items="${valuesInRows}" varStatus="loop"> <option&...
0
votes
1answer
40 views

How to get data from URI in js in a synchronous way

I'm trying to get data from a uri. I use the exemple at : https://jsonplaceholder.typicode.com/users/1 and try to display the id ("id" : "1"). I have to get this value into a variable because I'm also ...
1
vote
0answers
45 views

XJC fails when backslash in schema import and bindings specified

I want to generate Java classes from an XSD with xjc (version 2.3.0-b170531.0717) Unfortunately the XSD imports another XSD given in a relative path with Windows path separators (backslash \), which ...
0
votes
0answers
20 views

How to use the kindle uri scheme in xamarin forms?

i want to open the kindle application from my own app and need to open specific file (included in the resources folder), i´ve been looking for the uri scheme in kindle but there is no information, ...
1
vote
0answers
12 views

Converting a File to a directory of which it is unclear if it exists to an URI with a reliable trailing slash

public static void main(String[] args) { // legacy code comes around with a File File baseDir = new File("C:\\path\\to\\parent\\directory"); mkdirs(baseDir.toURI()); } // method in a ...
1
vote
1answer
48 views

How to route the first URI segment using NGINX as a reverse-proxy?

I'm trying to construct an architecture/infrastructure on Amazon Web Services. Today I have an EC2 working like a gateway, with NGINX on the background. Btw, I'm new with NGINX. The last week I had ...
-1
votes
0answers
20 views

Ruby: send XML request to a Webservice

I'm attempting to invoke a webservice but I always got 500 internal server error. Unfortunately I cannot access to server log for investigate. Can someone help me? Thanks in advance! uri = URI.parse('...
0
votes
1answer
21 views

Ansible Using large variable in playbook opts to fail while pasting the raw data in, or using other smaller variables will run

I want to push ios_facts to gitlab using ansibles uri module. - name: get ios facts ios_facts: gather_subset: all register: ios_facts - name: commit to gitlab delegate_to: localhost uri:...
-4
votes
0answers
36 views

How to add a method name after the query parameter in url

I have a situation where my actual url is www.abc.com/home/test/abc-def But based on my requirement I made changes to the routes which resulted the url to be $route['(:any)'] = "home/test/$1"; ...
0
votes
1answer
33 views

HTTP Error 400 using Ansibles URI Module with gitlab api

I'm trying to commit to a gitlab project using ansibles uri module and the gitlab api. The final goal is to move the JSON into a template and commit information from multiple machines to different ...
1
vote
1answer
46 views

How to create URI without context-path using X-Forwarded-* headers?

I am trying to find a solution which will build a new link using X-Forwarded-* headers. public class ApiUriBuilderTest { private MockHttpServletRequest request = new MockHttpServletRequest(); ...
-1
votes
0answers
11 views

What is the longest valid percent encoded character for an URL?

I am wondering what is the longest size of a percent-encoded character in a URI. Wikipedia mentions the character 元 encoded as %E5%85%83. It is it possible to have a character encoded with four %XX ...
0
votes
1answer
35 views

How can I pass an image file if I have the image's content uri?

I want to use a resize library to compress some photos. The library requires me to pass to it the source file. I am choosing the image with a simpe intent, and what I get in return is a content Uri ...
1
vote
0answers
41 views

What is an example of a URL that is not a URI?

In java.net, we have the two classes URI and URL. I get why some URIs cannot be converted to a URL, but I cannot find an example of a URL that cannot be converted to a URI. Yet, the toURI() method of ...
0
votes
1answer
66 views

I can't retrieve an access token from Spotify for my app

I can't get an access token for my Android app from Spotify because I can connect to the end point. I need the access token of my Android app and I tried the following: 1) Spotify Android auth ...
0
votes
0answers
9 views

Is there any function for search results according to last URI segment

I am on oslass classified script and our search results URL is like www.example.com/search/pattern,Golden-apple and people gets results of ads like golden apple or golden or apple. But now I had ...
6
votes
0answers
202 views

How to update genre in mediastore?

I'm trying to update the genre tag of an audio file. CODE final Uri genreUri = MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI; String currentGenreName = MediaStore.Audio.Genres.NAME; ContentValues ...
0
votes
0answers
9 views

Recommendation for Library that allows selecting multiple image with edit

In my application I want to have a system where user can select multiple images from gallery and possibly edit each of them separately(with some good editing features). Moreover I want the system to ...
0
votes
0answers
12 views

How can I search comment by nickname with URI?

A website does not support searching comment by my nickname. But I like to delete some comments. So, first I have to find all article which I replied. Can you help? How website is implemented... <...