Creating a raw HTTP request with sockets

前端 未结 5 1450
滥情空心
滥情空心 2020-12-02 17:54

I would like to be able to construct a raw HTTP request and send it with a socket. Obviously, you would like me to use something like urllib and urllib2 but I do not want to

5条回答
  •  自闭症患者
    2020-12-02 18:29

    For a working example to guide you, you might want to take a look at libcurl, a library written in the C language that:

    1. does what you want and much more;

    2. is a snap to use;

    3. is widely deployed; and

    4. is actively supported.

    It's a beautiful thing and one of the best examples of what open source can and should be.

提交回复
热议问题