A Uniform Resource Locator (URL) is a Uniform Resource Identifier (URI) that specifies where an identified resource is available and the mechanism for retrieving it.

learn more… | top users | synonyms

1
vote
1answer
60 views

Truncate port number from absolute Uri

We had a requirement to remove the port number from the Request.Url.AbsoluteUr i.e Actual: https://mysitename:443/Home/Index Excepted: https://mysitename/Home/Index The code I used for ...
2
votes
2answers
138 views

Getting Country Based on IP - Java

Im using Struts2, Google App Engine. Below is my program for getting the country based on IP of the visitor of the website. In my Struts2 action: HttpServletRequest request = ...
1
vote
0answers
22 views

Is this code optimal? Image-downloader/wallpaper setter

I'm making an image-downloading app that sets the image as the device wallpaper. For this I used the class: ImageDownloader.java This class has a function which accepts a url and an ImageView. It ...
1
vote
3answers
81 views

PHP creating slugify (clean URL) links in simple way?

I think this is the simplest way to slugify urls. You have any contra-indication? function url_clean($str){ $str = iconv('utf-8', 'us-ascii//TRANSLIT', $str); $clean_str = ...
1
vote
2answers
61 views

Http url validating

What do you think about this? #utils.py def is_http_url(s): """ Returns true if s is valid http url, else false Arguments: - `s`: """ if ...
3
votes
0answers
89 views

Can my .htaccess be improved? (better performance? shortened?)

I want to "canonicalize" URLs for my static (files and folders) website. The 'Aims' describes what I want to accomplish. The 'Code' gives my current .htaccess. Everything works right now, but I ...
1
vote
1answer
855 views

Routing in MVC with PHP

I am in the progress of creating a MVC structured website. I've opted to make my own instead of using pre-constructed MVC systems as a way to teach myself better coding and understand how applications ...
3
votes
2answers
312 views

Joining url path components intelligently

I'm a little frustrated with the state of url parsing in python, although I sympathize with the challenges. Today I just needed a tool to join path parts and normalize slashes without accidentally ...