Skip to content

Commit

Permalink
Merge pull request #23 from Sp3ctr3/master
Browse files Browse the repository at this point in the history
Create a test client to help develop stego and other components for Issue #22
  • Loading branch information
Sp3ctr3 committed Dec 11, 2013
2 parents 0ab225a + ba1ccd5 commit 36fff12
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testclient.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import urllib2
from BeautifulSoup import BeautifulSoup
#Change proxy settings here
proxy = urllib2.ProxyHandler({'http': '127.0.0.1:8080'})
opener = urllib2.build_opener(proxy)
req = urllib2.Request('http://www.google.com')
#Add headers here by calling req.add_header
req.add_header('Referer', 'OpenFaux')
urllib2.install_opener(opener)
res=urllib2.urlopen(req)
soup=BeautifulSoup(res.read())
print soup.prettify()

0 comments on commit 36fff12

Please sign in to comment.