Interact with http interface using curl

Hi
Does anyone have any example on how to call the http interface using curl?
How to generate content without using agent?

The Internet Computer Interface Specification :: Internet Computer (dfinity.org)

I cannot find example :frowning:
But you can search in this repo how to use HTTPS interface

It seems that it is possible to use curl if there is an encoder to cbor on bash

1 Like

Have you found examples? I’m trying to do the same thing

No, I ended up using agent library to do that instead of curl. You can check it here:
photos/auth.ts at main · functionland/photos (github.com)

1 Like

You need to run icx-proxy locally, and then you can curl that to HTTP GET assets from canisters that implement http_request.

1 Like

How do you use curl to interact with a mainnet,Can you provide a command line,thank you very much