open an https file

Reply

Join Date: Jan 2006
Posts: 2
Reputation: hummer010 is an unknown quantity at this point 
Solved Threads: 0
hummer010 hummer010 is offline Offline
Newbie Poster

open an https file

 
0
  #1
Jan 22nd, 2006
I'm trying to open an https file using python on windows:

https://www3.eub.gov.ab.ca/eub/dds/i...Number=1438224

My current attempt was this:

import urllib
import urllib2
the_url = 'https://www3.eub.gov.ab.ca/eub/dds/iar_query/ApplicationAttachments.aspx'
values = {'AppNumber':'1438224'}
data = urllib.urlencode(values)
req = urllib2.Request(the_url, data)
handle = urllib2.urlopen(req)

At this point i get an error:

urlopen error unknown url type: https

How can I open this file with python and create a list of links on the page?
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,022
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 932
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: open an https file

 
0
  #2
Jan 22nd, 2006
This is a secure website you are trying to get to, that could be a problem!
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 2
Reputation: hummer010 is an unknown quantity at this point 
Solved Threads: 0
hummer010 hummer010 is offline Offline
Newbie Poster

Re: open an https file

 
0
  #3
Jan 22nd, 2006
Originally Posted by vegaseat
This is a secure website you are trying to get to, that could be a problem!
I was afraid of that ...
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: open an https file

 
0
  #4
Feb 7th, 2006
Maybe this will help?

http://www.noah.org/python/https/

Looks to be a Python module that will help you download from HTTPS sites. I assume regular HTTP GET commands, etc, won't work through an encrypted connection.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC