471,326 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 software developers and data experts.

HTTPS request

Hi ,

I want to send HTTPs put request to the server .Can any one help me how
to do that .

I am using this code

import httplib
from group import *

class HTTPS:
def __init__(self,ip,port=443):


self.conn = httplib.HTTPSConnection(str(self.ip))

def send_request(self,method,uri,data=None,headers=Non e):

if __name__=="__main__"

headers={"Content-type": "application/auth-policy+xml","Accept":
data="some xml doc"
http_obj.send_request('PUT',uri,data,headers=heade rs)
But it dumps core where ever i run this.Please tell me where i am going


Sep 5 '07 #1
0 1065

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bob Hansen | last post: by
1 post views Thread by dave | last post: by
2 posts views Thread by MarkAurit | last post: by
3 posts views Thread by sameergn | last post: by
1 post views Thread by jdp | last post: by
7 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.