Friendica
Pontus Ullgren
Pontus Ullgren

Pontus Ullgren

ullgren@mastodon.social

Pontus Ullgren

ullgren@mastodon.social
Java developer, half-turned sysadmin, picked up go, contemplating rust
ActivityPub
2023-05-25 07:26:27 2023-05-25 07:26:26 2023-05-25 07:23:13 3310377

Pontus Ullgren
Pontus Ullgren
mastodon - Link to source

Pontus Ullgren

2 years ago • •

Pontus Ullgren

2 years ago • •


#Todayilearned that #curl has a --resolve option. Helped me a lot when debugging ingress on a docker swarm cluster.

> curl example.com --resolve www.example.com:80:127.0.0.1

will call port 80 on localhost instead of the public IP of www.example.com

Example Domain

www.example.com
#todayilearned #curl
This entry was edited (2 years ago)
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Pontus Ullgren

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Pontus Ullgren • 2 years ago • •
this and some other tricks: daniel.haxx.se/blog/2018/04/05…

curl another host | daniel.haxx.se

daniel.haxx.se
  •  Languages
  •  Search Text
  •  Share via ...
⇧