Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

ignore certificare ssl

import urllib2, ssl

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

opener = urllib2.build_opener(urllib2.HTTPSHandler(context=ctx), your_first_handler, your_second_handler[...])
opener.addheaders = [('Referer', 'http://example.org/blah.html')]

content = opener.open("https://localhost/").read()
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #ignore #certificare #ssl
ADD COMMENT
Topic
Name
8+8 =