Skip to content

Latest commit

Β 

History

History
24 lines (20 loc) Β· 583 Bytes

File metadata and controls

24 lines (20 loc) Β· 583 Bytes

cURL Command in Linux

cURL: client URL

Send Multiple cURL Requests

cURL μš”μ²­μ„ λ³‘λ ¬λ‘œ μ‹€ν–‰ν•˜κ³ μž ν•  λ•Œ μ•„λž˜μ™€ 같은 방법을 μ‚¬μš©ν•  수 μžˆλ‹€.

  1. URL List κ°€ λ‹΄κΈ΄ txt 파일 μž‘μ„±
    • e.g. url-list.txt
  2. xargs λͺ…λ Ήμ–΄λ₯Ό ν†΅ν•œ curl μš”μ²­
    • e.g. xargs -P 3 -n 1 curl -0 < url-list.txt

    • About options

      • P: max-procs
      • n: max-args

예)

  • File: url-list.txt

    https://www.apple.com
    https://www.bestbuy.com
    https://www.craigslist.org
    
  • Send Request:
    xargs -P 3 -n 1 curl -0 < url-list.txt