开发者

sending http request to apache through a python script

开发者 https://www.devze.com 2022-12-14 00:54 出处:网络
All, How do we send a http request through a python s开发者_如何学编程cript.which will login and in turn call another link?

All,

How do we send a http request through a python s开发者_如何学编程cript.which will login and in turn call another link?

Thanks.


I find that Urllib2 suffices in most cases. It has great support for passwords, authentication and cookies. Cookielib might help too.


Have you looked at httplib? urllib may also be worth looking at as it is a slightly higher level interface.

0

精彩评论

暂无评论...
验证码 换一张
取 消