introducing #trurldaniel.haxx.se/blog/2023/04/03… - trurl is a tool in a similar spirit of tr but for URLs. Here, tr stands for translate or transpose.
this looks great, thanks for creating it! For years I've been using Python's urllib in the interactive interpreter, this will surely be a nice replacement.
Just a tiny remark: the scheme guessing looks like a potential footgun to me
Stefan Eissing
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Stefan Eissing • • •Troed Sångberg
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Troed Sångberg • • •spydon
in reply to daniel:// stenberg:// • • •Vincent Biret
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Vincent Biret • • •daniel:// stenberg://
Unknown parent • • •Andrea Corbellini
in reply to daniel:// stenberg:// • • •this looks great, thanks for creating it! For years I've been using Python's urllib in the interactive interpreter, this will surely be a nice replacement.
Just a tiny remark: the scheme guessing looks like a potential footgun to me
daniel:// stenberg://
in reply to Andrea Corbellini • • •Rowan Merewood
in reply to daniel:// stenberg:// • • •Björn Lindström
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Björn Lindström • • •Björn Lindström
in reply to daniel:// stenberg:// • • •Space Hobo
in reply to daniel:// stenberg:// • • •I remember working on an API that had all kinds of fields for things like host, port, resource name, etc.
I went to everyone and said "You know we have a structured microformat for this information already, right?"
It helped that we were in python and urlparse was everywhere, but even that won't split "netloc" for you grumblegrumble...