7
GitHub - curl/urler: command line tool for URL parsing and manipulation
source link: https://github.com/curl/urler
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
urler
command line tool for URL parsing and manipulation
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK