curl
Linux · Network · available in the simulator
What it does
Transfer data from or to a server using multiple protocols.
Syntax
curl [opciones] URL
Options and parameters
-oWrite output to the specified file.
curl -o pagina.html https://example.com-OWrite output to a local file named like the remote file.
-LFollow redirects.
-IFetch the HTTP headers only.
curl -I https://example.com-XSpecify request method to use.
curl -X POST https://api.example.com-HPass custom header(s) to server.
curl -H "Accept: application/json" https://api.example.com-dSend data in the request body.
-uSpecify user and password for server authentication.
-sSilent mode (do not show progress meter or error messages).
-kAllow insecure server connections when using SSL/TLS.
Usage examples
curl https://example.comcurl -L -o archivo.zip URLcurl -o pagina.html https://example.comcurl -I https://example.comcurl -X POST https://api.example.comcurl -H "Accept: application/json" https://api.example.com