[BangPypers] Accessing file using httpsconnection
Senthil Kumaran
orsenthil at gmail.com
Tue Oct 12 12:56:55 CEST 2010
On Tue, Oct 12, 2010 at 07:44:40PM +0900, murugadoss wrote:
> Sample Code:
> >>> import httplib
> >>> conn = httplib.HTTPSConnection("internet server")
> >>> conn.request("GET","/'*.zip")
>
I guessing you are using a correct "internet server" correctly.
>>> conn = httplib.HTTPSConnection('myhostname.domain',port)
>>> conn.request("GET","/") # Lets first do a simple GET
If you have to get *.zip files, you might have to pass the proper
headers in the first stmt.
> On sending request for getting files, python throws "segmentation fault". I
Segmentation fault is funny!, It would help if you paste the full error
message or traceback
--
Senthil
More information about the BangPypers
mailing list