reddit hackernews mail facebook facebook linkedin
trurl

trurl

Command line tool for URL parsing and manipulation.

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

$ trurl --set host=example.com --set scheme=ftp
ftp://example.com/

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

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