curl: read headers from file

前端 未结 5 2211
梦如初夏
梦如初夏 2020-12-24 05:56

After the --dump-header writes a file, how to do read those headers back into the next request? I would like to read them from a file because there are a number of them. <

5条回答
  •  猫巷女王i
    2020-12-24 06:30

    Starting with curl 7.55.0 it can now read headers from a file:

    curl -H @filename
    

    It's that easy now.

提交回复
热议问题