Why are you usinjg https://127.0.0.1/add and not the domain of the site ?
Jun 7, 2024
5
Level 2
curl request on localhost
I want to make a api request to a site deployed by forge (on hetzner cloud).
The bash curl command I was trying is as follows:
curl -X POST -H "Content-Type: application/json" -F fullpath=foo -F name=foo https://127.0.0.1/add
Obviously this cannot work as the site isn't specified. It probably tries to open the default site.
Therefore I get an error message.
curl: (35) error:0A000458:SSL routines::tlsv1 unrecognized name
How can I specify the site in the URL?
Please or to participate in this conversation.