티스토리 뷰

공부

[sh] curl get `content-length`

승가비 2023. 7. 29. 06:20
728x90
curl -s -L -I "https://code.jquery.com/jquery-3.5.0.min.js" | grep content-length
content-length: 89493

https://code2care.org/q/get-size-of-http-response-curl-command-content-length

 

Get the Size of HTTP Response using cURL Command (Content Length) | Code2care

How to get the size of the HTTP Response using cURL Command (Content-Length) - Code2care

code2care.org

https://unix.stackexchange.com/questions/450402/how-to-retrieve-downloadable-file-size-with-curl-command

 

How to retrieve downloadable file size with curl command?

I have a requirement in the shell script like, have to download a file from "url" with curl command. before downloading that file I want to process that same file size in a method. Can anyone help...

unix.stackexchange.com

 

728x90
댓글