Modify,block HTTP connection
i would like t开发者_如何学Pythono write proxy in vc++, which blocks some http requests. Can you please advice me, how to intercept and examinate these requests. What do i need to do this?
Most people would use Winsock for this. There is a load of socket libraries you can check out for alternatives. Qt might be a good option, as well as libcurl, and further a google search for c++ socket library will turn up loads.
On HTTP parsing, there is not so much to choose from I think. There is ry's parser that has some users it seems. Personally I use a modification of this one, which is good for my purpose, but not very robust for security and there is also Wininet, which is probably to basic for firewal purposes.
精彩评论