python: https client sample
来源:互联网 发布:php无限极分类菜单 编辑:程序博客网 时间:2024/04/28 11:10
#-*- coding: cp936 -*-#!/usr/bin/env pythonimport osimport httplibimport socketKEY_FILE = os.getcwd() + '/CA/private/key.pem'CERT_FILE = os.getcwd() + '/CA/certs/01.pem'GET = "GET"conn = httplib.HTTPSConnection('0.0.0.0', '4242', cert_file = CERT_FILE)conn.request(GET, "/this.txt")response = conn.getresponse()print response.status, response.reason, response.read()conn.close()
- python: https client sample
- python: https server sample
- Python JIRA Client Sample Code
- python 双向https client
- python https server and client
- python创建http/https server和client
- java nio client sample
- mina client sample
- mina client sample
- Socket Server Client Sample
- Winsock MSDN Sample (Client)
- boost: tcp client sample
- SQL Express - Client Synchronization Sample
- JAVA UDP Server/Client Sample
- python -- TextCtrl sample
- python -- chat (sample)
- python client
- python3把httplib改了名字,对应的库是http.client https://docs.python.org/3.4/library/http.client.html https://do
- hive使用压缩时出现的问题
- nlpers上面关于自然语言处理(NLP)如何入门的文章
- iOS SMTP发送邮件开源项目[SKPSMTPMessage]
- LWIP netbuf netconn函数
- 调试器工作原理——基础篇
- python: https client sample
- linux MISC 驱动模型分析
- Canvas学习笔记二——图形绘制
- android布局与多屏适配---layout_weight
- python中的迭代器
- 2012年度总结
- msvcrtd.lib和libcmtd.lib冲突 (转)
- 乱漫漫其修远兮,吾将上下而求索
- 也谈大端模式(big endian)和小端模式(little endian) (二) 理论与实例一