lhx2008
V2EX  ›  问与答

怎么样方便地带 header 批量 post?

  •  
  •   lhx2008 · Dec 6, 2014 · 2877 views
    This topic created in 4263 days ago, the information mentioned may be changed or developed.
    header、post内容很多,用curl好不方便,用fiddler可以成功post,curl几次都没有成功,也不好批量弄,有什么解决方法么?
    5 replies    2014-12-07 00:52:15 +08:00
    satanwoo
        1
    satanwoo  
       Dec 6, 2014
    postman
    satanwoo
        2
    satanwoo  
       Dec 6, 2014
    回错了,无视我。。
    jedihy
        3
    jedihy  
       Dec 7, 2014 via iPhone
    curl不应该会有问题的,很多这样的软件都是个基于curl
    laobubu
        4
    laobubu  
       Dec 7, 2014   ❤️ 1
    其实遇到这种问题我喜欢用 PHP 写一个 curl 的程序,如果实在不行的话,而且用的只是 http ,大不了自己写一个啥脚本批量地:
    1. 创建 TCP 连接到 80 端口
    2. 自己写 POST /xxxx HTTP/1.1 那啥的
    coldwinds
        5
    coldwinds  
       Dec 7, 2014   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2880 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:01 · PVG 22:01 · LAX 07:01 · JFK 10:01
    ♥ Do have faith in what you're doing.