Questions tagged [parse-url]

url-parsing is the process of splitting a Universal Resource Locator into its component parts usually to extract parameters made as part of a request or to filter requests. The url http://parts.web.site/discount?part=51762 might be parsed to identify "/discount" and "part=51762" was requested

Overview

A Universal Resource Locator is a character string that represents an internet resource.

An example of a URL might be:

ftp://my.photo.site:21/static/photo?id=82713&format=png

url-parsing is the process of splitting a URL into its component parts, usually to retrieve request parameters or to filter requests. The example above might be parsed into:

scheme: ftp
domain: my.photo.site
port: 21
path: /static/photo
query_string: id=82713 format=png

The process of parsing a url can be managed by a library like the python urlparse, by server frameworks or string processing functions like regex.

Links

94 questions
-1
votes
1 answer

How to normalize url's with parse_url?

I'm trying to do very basic normalization and realize that to a large extent url normalization is an impossible task. Regardless, different search engines return the same search results with different schemes, hosts etc. What are the most basic…
the5thace
  • 51
  • 2
  • 8
-1
votes
2 answers

Parse Adf.ly URL using PHP

I have a link like that: http://adf.ly/2323070/http://www.fileflyer.com/view/O33TOYUAFMIFF And I want to get only this part of the URL: http://www.fileflyer.com/view/O33TOYUAFMIFF Note The URL number can be change, so the syntax of the URL…
HTMHell
  • 5,761
  • 5
  • 37
  • 79
-1
votes
3 answers

PHP Get Domain With http

I want to get Get Domain from URL and be output: http://www.domain.com/ I found this, but does not come out with the http://
monde
  • 13
  • 3
-2
votes
2 answers

Exploding array for url

I'm developing a site for analyzing a store's data. I need the url part of my array to look like this: array( 'url' => 'http://some.website.com:8080/SASStoredProcess/do?_username=user-123', '_password' => 'passwd', '_program' =>…
xonorageous
  • 2,281
  • 7
  • 26
  • 35
1 2 3 4 5 6
7