Skip to content
forked from curl/trurl

command line tool for URL parsing and manipulation

License

Notifications You must be signed in to change notification settings

marianposaceanu/urler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urler

command line tool for URL parsing and manipulation

original idea

Example command lines

  $ urler --url https://curl.se --set-host example.com
  https://example.com/

  $ urler --set-host example.com --set-scheme ftp
  ftp://example.com/

  $ urler --url https://curl.se/we/are.html --redirect here.html
  https://curl.se/we/here.html

  $ urler --url https://curl.se/we/../are.html --set-port 8080
  https://curl.se:8080/are.html

  $ urler --url https://curl.se/we/are.html --get-path
  /we/are.html

  $ urler --url https://curl.se/we/are.html --get-port
  443

Install

On Linux :

It's quite easy to compile the C source with GCC :

$ make
cc  -W -Wall -pedantic -g   -c -o urler.o urler.c
cc   urler.o  -lcurl -o urler

About

command line tool for URL parsing and manipulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 81.8%
  • Roff 15.9%
  • Makefile 2.3%