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
votes
0answers
20 views

should URLs be meaningful where HTTP methods are explicit [on hold]

there is a discussion in the group I'm working with regarding pattern of URLs for a backend api, although we are using different http methods to do different operations on an object, if the urls also ...
4
votes
1answer
60 views

Getting a value from a query string

I have a URL in this format: http://localhost:57279/AssociateCaseDetails?UId=176948&caseID=1123 I need the values of UId ...
3
votes
1answer
58 views

Java class that generates a short URL string for an input string

Help me find out if the approach I took to generate random strings here is correct to be able to return the appropriate short URLs. ...
1
vote
0answers
30 views

jquery .load() div content from URL with hash-sign for id [closed]

I have my page so far: einserpasch.com The crucial markup is this: ...
6
votes
2answers
51 views

Extracting information from a URI

I'm completely new to C and my first project is to create a simple cURL-like HTTP request client... but first, I need to create a function that can parse a URL. I've created this function, and it ...
3
votes
2answers
71 views

Update URL with new parameter value

I needed a way to update a parameter in the URL, or add it if it doesn't exist, but keep any other variables the same value. I built this function to do the task, and while it works, I feel like it's ...
1
vote
1answer
31 views

Hash read/write/delete functions

Here is my JavaScript function to manipulate the hash: ...
0
votes
1answer
53 views

Passing an array in a hyperlink

Maybe this is fine the way it is, but it seems messy. Basically I have dynamically generated HTML that will display a list of songs in a given folder. Each song has an ID, and I want to add a button ...
1
vote
0answers
35 views

Download a file from given URL and retry on connection errors

I wrote script for Python 2.78 which is supposed to download and save a file from a given URL using the requests library. In case that a connection to the server can be established and a valid ...
6
votes
2answers
201 views

Checking for existence of URL parameters

I'm busy rewriting some from my spaghetti code into OOP classes. I'm still learning OOP and very new to the concept. From help from this answer from @EliasVanOotegemto on a previous question I've ...
1
vote
1answer
63 views

URL checker is very slow

I have +-645 IRL links I need to validate. The code below is my attempt, but my problem is that it takes forever to check all links and sometimes times out. Is there a better way of validating so many ...
5
votes
1answer
56 views

Regex to parse URIs for their correctness according to RFC 3986

I recently came to write a regex to parse URIs. Now I wonder, did I miss something? Did I make a mistake or could I have written it cleaner? That's why I'm here. In order to write the regex, I took ...
4
votes
3answers
66 views

Searching for a string in a downloaded PDF

This code goes to the website containing the PDF, downloads the PDF, then it converts this PDF to text. Finally, it reads this whole file (Over 5000 lines) into a list, line by line, and searches for ...
0
votes
2answers
52 views

Remove parameters from string containing URL

Is this the best way to remove URL parameters from a string containing an URL? ...
1
vote
0answers
82 views
1
vote
1answer
120 views

Executing URL using Apache HttpClient

I have XML below which is stored as a String in xmlData variable and I need to pass this String to my URL in ...
1
vote
1answer
27 views

Appending URL parameters to links

I've got some pages that may or may not load with a ReturnUrl parameter, and some links that will be generated without that parameter (though I've applied a class to them). The site uses jQuery, and ...
2
votes
1answer
98 views

PHP login redirect security

I wish to redirect users to the login page if they attempt to visit a page which requires them to be logged in. After logging in, however, I want to redirect the user back to their original ...
3
votes
1answer
128 views

Nginx Alias vs Rewrite

I have two working configurations that, on the surface, seem to do the same thing. They both accomplish the functionality that I need: ...
2
votes
0answers
49 views

Parsing URLs in Pandas DataFrame

I'm working on a project, and the client needs their Google AdWords destination URL query parsed, and the values spell checked to eliminate any typos (use instead of us, etc). So what I'm doing is ...
1
vote
0answers
33 views

Safely include requested pages without a whitelist

Is this pretty safe from breakout attempts? I'd rather not make a whitelist and check if the requested page is in the array since theres a ton of pages. And I wanna keep it clean. So I'm looking for a ...
4
votes
1answer
54 views

Parse prospero-Parameters

Prospero is a URI Scheme. There you have fields and values. Would you guys check this code and give common suggestions or even testcases for junit-Tests? Sorry Docu is in German. ...
6
votes
2answers
747 views

Parallel “wget” in Java

Purpose: write Java program that downloads a list of URLs specified on commandline in parallel (simultaneously), reporting download completion every second. My solution follows below, please point ...
3
votes
2answers
82 views

Create nice url with diactrics removal

Please review my class. It uses iconv() (it's probably not the best solution however I haven't found any better alternative to change unknown characters). ...
3
votes
2answers
84 views

Pagination filtering

I want to check if there is page variable (in URL) and if it is, if it's correct - it cannot be number 1 because this is default page and it should be valid int ...
8
votes
2answers
327 views

Serializing JSON data coming from two URLs in the same object

I have two URLs (urlA and urlB) and both the URL gives me a JSON response back in the same JSON format. Below is my JSON string ...
3
votes
1answer
48 views

Showing the domain of a URL

I have such a method which takes a URL, such as http://twitter.com/ttt or twitter.com/dasd, and should show its domain with http: http://twitter.com and name twitter ...
6
votes
2answers
147 views

Simple python script to shorten URLs in specified text files

A recent question inspired me to write a script for this task: Shorten URLs in specified text files using googleapis.com Handle multiple URLs, whether on the same line or multiple lines The ...
11
votes
2answers
781 views

PHP URL Shortener

I just developed a URL shortener. index.php: ...
6
votes
1answer
222 views

Git commit-msg URL shortener

I have just written my first git hook script. It is very simple that simply finds any URLs in the commit message and uses the Google URL shortener to rewrite the URL nicely. it is located here. I ...
5
votes
1answer
144 views

Generating the pretty bit at the end of a URL

I'm having a dip into F# and am attempting not to write it like it's C#. One area that bothers me is using members of System.String. These often need to be chained ...
5
votes
3answers
149 views

Cleaner or better readability in URL composition

I have a URL that is hardcoded via a config which I extract into a config: ...
3
votes
2answers
560 views

Load images, manipulate DOM, store/retrieve data using localStorage

I wrote a little code sample which: load images manipulate DOM (replace images) store/retrieve related data using localStorage ...
0
votes
2answers
608 views

Add a set of querystring params to a URL

Example cases: Need to add x=1, y=2 and querystring variables to the following URLs: ...
4
votes
1answer
124 views

Resolve (domainless) machine name from DNS alias

So I have a URI with a DNS alias, and I need to dynamically replace the alias with the actual machine. I started out with this: ...
1
vote
1answer
175 views

Split download file buffer by any number of threads

This is my first attempt at splitting the download buffer into several threads by the number provided. I want to improve on performance and better implementation approach. ...
1
vote
1answer
67 views

Making a URL by prioritizing the keys if multiple keys are present efficiently

I recently started using the Builder pattern in one of my projects. Below is my builder class - ...
7
votes
5answers
807 views

How can I better my URL checker program?

I made a LinkChecker program which checks URLs from a text file and outputs status into another file like this: ...
1
vote
1answer
250 views

Getting information from URL efficiently

I wrote a dirty and ugly code to show in console how many bugs are left until the release of elementary codename Isis. The code works but it's pretty inefficient. What it does is: downloads the ...
10
votes
2answers
1k views

Spliterator implementation

I'm trying to post a little tutorial on the new Spliterator class. There are many tutorials these days on using stream starting from a standard Java collection, but ...
4
votes
2answers
78 views

Download URL from clipboard

This is a Python script I made to download a URL from the clipboard. When a new URL is copied to a clipboard it adds the URL to a download queue, then on a separate thread it downloads the URL to a ...
6
votes
2answers
52 views

Refactor module for calls to internal image service

Looking for help refactoring the following code to follow a Functional Programming paradigm. The first function builds a configuration object with default settings and optional presets, while the ...
3
votes
2answers
329 views

Adding time offsets to create future dates

How can I shorten this (working) code to create future dates in ruby for use as params in URLs? I'm doing: ...
5
votes
1answer
44 views

Loading car photo's

I have been developing a small application for a client which combines two arrays together and then creates a URL and then loads the images on the same page from the given URL. I'd like you to look ...
2
votes
0answers
82 views

Persistable specifications in symfony

I'm creating an app where the user will be able to create HTTP request matchers. So the RequestMatchers will match HTTP method, path, query parameters, etc., for ...
3
votes
1answer
69 views

Return current URL

I was unable to find how to get current URL so here's what I've made. Brief tests didn't reveal anything bad. Your thoughts, educated opinions, suggestions, and comment on potential bugs or ...
4
votes
1answer
741 views

Binding click event through elements

I need to know whether I am doing the best way of binding click event through elements in jQuery. I need to avoid duplicate code in my function (since lot of duplicate code is repeated in all ...
5
votes
2answers
340 views

Removing everything after a certain character

I was just writing code, and wanted to make a piece that removes everything after the character ? if it's found within the URL. ...
3
votes
1answer
127 views

Finding e-commerce site of the product URL given and see if it is supported

I am building a Python app in which user can maintain wishlist of the products. I only support few e-commerce sites and do not support country specific sites (e.g I may support amazon.com but not ...
0
votes
2answers
10k views

Remove a parameter and its value from URL's query string

I'm coding an algorithm to remove a parameter (let's call it foo) from URL strings. Of course, after the foo parameter removal, ...