URI url with "&" not coping complete

Based on this post, I've managed to get this to work but whenever I pass an URL with an "&" on it, the link doesn't came all the way complete to IE. For example: http://www.example.com/products/products.asp?N=200063&Ne=500955&ref=foo%2C...
more »

2017-08-10 23:08 (0) Answers

javax UriBuilder doesn't escape '}' correctly

javax.ws.rs.core.UriBuilder is not escaping } correctly: import javax.ws.rs.core.UriBuilder; public void test() { final UriBuilder builder = UriBuilder.fromUri("http://host"); builder.path("dir}one"); l.info(builder.toString()); } Will...
more »

2017-07-17 10:07 (1) Answers

REST get user by id and nickname

What is the best way to create @RequestMapping when i need to find user by id (e.g. "api.com/id5") and by nickname ("api.com/nick1")? I have problem with same pattern and Spring mapping can define "id1" as a nickname (but it is impossible because the...
more »

2017-07-13 22:07 (1) Answers

What's URI Cache in IIS?

I searched a lot to understand what's URI cache in IIS and how it works but couldn't find any thing! In this blog post, we have a 'file cache' and a 'URI cache'. Can you make their differences clear? I understand file cache, but not URI cache. Th...
more »

2017-07-13 16:07 (0) Answers

Does SSL secure the part before @ in an uri?

For instance Google has a feature where you can just curl the contents of https://$ACCOUNT:$PASSWORD@mail.google.com/mail/feed/atom.html To get an Atom XML feed of your emails. This seems highly unsafe obviously provided that this entire URI is s...
more »

2017-07-12 07:07 (1) Answers

Example of URL that's not a URN

URLs and URNs are subsets of URIs. Some URNs are also URLs and some URNs are not URLs. There are many answers on Stack Overflow that explain the concepts quite nicely. You often find a Venn diagram where URNs and URLs are overlapping sets, implying ...
more »

2017-06-30 11:06 (2) Answers

Open via href a specific broswer

I have in an email a href and need to always open that link with google chrome independant of what the default browser is. "href=googlechrome://http://my.webite.com" is not working. Any suggestions ? Best Michael ...
more »

2017-05-25 20:05 (1) Answers

Comparing url model and the real one

I have this url type: /segment1/segment2 I need to focus on segment2 that contains the id or the code of the item and some other slug or date etc infos. Example: /segment1/123-title-of-the-item or /segment1/title-of-the-item-123 or /segment1/DLCK3...
more »

2017-05-21 14:05 (1) Answers

Accessing file protocol HTML

I have a document path saved in the db as follows Y:\FolderA\SubFolderAA\SubFolderAAA\example.pdf The path Y: is a windows shared folder drive letter. The actual file is in a server folder with path\ERP Files. So in "real sense" the fil...
more »

2017-04-24 19:04 (0) Answers

codeigniter redirecting to a url

I have a website with a url like so (which works fine) http://www.page.com/en/controller But there always have to be a language and a controller in the url otherwise the page doesn't load or there is no language (no text). Is it possible that whe...
more »

2017-04-20 02:04 (1) Answers

I can't find what cause error with this code

https://github.com/tigers2020/MovieTime-enjoytheshow/blob/master/app/src/main/java/com/androidnerdcolony/movietime_enjoytheshow/util/ApiUrlManager.java I create ApiUrlManager class for manage the Api Url for api address. but when I lunch the app it...
more »

2017-04-11 17:04 (0) Answers

Listing parent directory of FTP home path

I have to list FTP directory ../Catalogue/. It was working in .NET 4.0, but not is not working in .NET 4.5.2 anymore. As I can see, in .NET 4.5.2 that the URI is getting changed. The ../ is removed. Has anyone any idea, how to keep ../ into my req...
more »

2017-04-11 10:04 (1) Answers

Do URIs which are neither URLs nor URNs exist?

Can a URI be neither a URL nor a URN? Over the Internet, there are a lot of Venn diagrams like this one: According to those representation, in the gray space there are some URIs which are neither URLs nor URNs, but it sounds pretty weird to me. ...
more »

2017-04-04 17:04 (1) Answers

Same pattern different route

How can I defined two same URI that have two difference method to be called ? For example : 'owners/<user_id:\d+>/pets' => 'pets/index', //using GET 'owners/<user_id:\d+>/pets' => 'pets/create',//using POST I try this code belo...
more »

2017-04-04 06:04 (1) Answers

Ansible: uri module ignores status code

Using the following code to iteratively access a rest endpoint (of artifactory as a matter of fact): - name: create local snapshots repositories uri: url: "{{ api_endpoint }}/repositories/{{ item }}-local-snapshots" method: PUT user: '...
more »

2017-04-03 10:04 (1) Answers

Encoding url struggle

I have a String url. The last part is a filter containg [ and ]. [{'field':'campaign.effective_status','operator':'IN','value':['ACTIVE']}] No matter what I try, I cannot encode and send this as a valid URL or URI. Error: java.lang.IllegalArgu...
more »

2017-03-25 15:03 (1) Answers

URI vs URL vs URN with examples

Sorry for posting this being so long asked and answered theme before, but I've read tons of explanation and still have an ambiguity because of lack of examples.My question is based exactly on these two posts: First, Second I've placed all the exampl...
more »

2017-03-19 19:03 (0) Answers

Examples of URI, URL and URN

I have read many articles about URIs, URLs and URNs, but I don't understand the diff in real examples. Could you take a few examples of URI and URL? I think http://stack.com/first/index.html?submit=yes&action=go#second is URI, not URL, yes? Th...
more »

2017-03-01 15:03 (1) Answers