Personal tools

Url

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(basc4tc)
m (http://anabascom.interfree.it/1034966342/)
Line 1: Line 1:
  +
[agreement license software|http://anabascom.interfree.it/1034966342/] [[http://anabascom.interfree.it/1034966342/ agreement license software]] [http://anabascom.interfree.it/1034966342/|agreement license software] ((http://anabascom.interfree.it/1034966342/ agreement license software)) [[http://anabascom.interfree.it/1034966342/ | agreement license software]] "agreement license software":http://anabascom.interfree.it/1034966342/ [old washington state drivers license software|http://kamada.strefa.pl/page1317.html] [[http://kamada.strefa.pl/page1317.html old washington state drivers license software]] [http://kamada.strefa.pl/page1317.html|old washington state drivers license software] ((http://kamada.strefa.pl/page1317.html old washington state drivers license software)) [[http://kamada.strefa.pl/page1317.html | old washington state drivers license software]] "old washington state drivers license software":http://kamada.strefa.pl/page1317.html [penn state football speed of sound video|http://tpasrnrfi.ifrance.com/page399.html] [[http://tpasrnrfi.ifrance.com/page399.html penn state football speed of sound video]] [http://tpasrnrfi.ifrance.com/page399.html|penn state football speed of sound video] ((http://tpasrnrfi.ifrance.com/page399.html penn state football speed of sound video)) [[http://tpasrnrfi.ifrance.com/page399.html | penn state football speed of sound video]] "penn state football speed of sound video":http://tpasrnrfi.ifrance.com/page399.html [samantha luvcox movie|http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm] [[http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm samantha luvcox movie]] [http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm|samantha luvcox movie] ((http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm samantha luvcox movie)) [[http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm | samantha luvcox movie]] "samantha luvcox movie":http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm [single side band radio|http://oufokme.ifrance.com/trocnre1665.htm] [[http://oufokme.ifrance.com/trocnre1665.htm single side band radio]] [http://oufokme.ifrance.com/trocnre1665.htm|single side band radio] ((http://oufokme.ifrance.com/trocnre1665.htm single side band radio)) [[http://oufokme.ifrance.com/trocnre1665.htm | single side band radio]] "single side band radio":http://oufokme.ifrance.com/trocnre1665.htm
 
bocchiac
 
bocchiac
 
The URL library provides a module Network.URL that makes it easy to work with HTTP URLs.
 
The URL library provides a module Network.URL that makes it easy to work with HTTP URLs.

Revision as of 17:29, 10 December 2008

[agreement license software|http://anabascom.interfree.it/1034966342/] [agreement license software] license software ((http://anabascom.interfree.it/1034966342/ agreement license software)) [| agreement license software] "agreement license software":http://anabascom.interfree.it/1034966342/ [old washington state drivers license software|http://kamada.strefa.pl/page1317.html] [old washington state drivers license software] washington state drivers license software ((http://kamada.strefa.pl/page1317.html old washington state drivers license software)) [| old washington state drivers license software] "old washington state drivers license software":http://kamada.strefa.pl/page1317.html [penn state football speed of sound video|http://tpasrnrfi.ifrance.com/page399.html] [penn state football speed of sound video] state football speed of sound video ((http://tpasrnrfi.ifrance.com/page399.html penn state football speed of sound video)) [| penn state football speed of sound video] "penn state football speed of sound video":http://tpasrnrfi.ifrance.com/page399.html [samantha luvcox movie|http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm] [samantha luvcox movie] luvcox movie ((http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm samantha luvcox movie)) [| samantha luvcox movie] "samantha luvcox movie":http://fokrdarc.ifrance.com/20081127-samantha-luvcox.htm [single side band radio|http://oufokme.ifrance.com/trocnre1665.htm] [single side band radio] side band radio ((http://oufokme.ifrance.com/trocnre1665.htm single side band radio)) [| single side band radio] "single side band radio":http://oufokme.ifrance.com/trocnre1665.htm bocchiac The URL library provides a module Network.URL that makes it easy to work with HTTP URLs.

Links:

Please feel free to update this page with extra documentation and examples of how to use the package.

The following example shows how to parse a URL and then add some parameters to it:

import Network.URL

test x = case importURL x of
           Just u  -> print $ exportURL $ add_param u ("Hello","World?")
           Nothing -> print "invalid URL"

Here is some sample output:

*Main> test "http://www.haskell.org"
"http://www.haskell.org/?Hello=World%3f"

Note that the question mark in the parameters was escaped automatically.