Created
July 20, 2011 03:51
-
-
Save automata/1094304 to your computer and use it in GitHub Desktop.
requisicao aa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib, urllib2 | |
val = {'user': '1', 'log': '2011-07-19 12:30:10::texto engracado'} | |
dados = urllib.urlencode(val) | |
req = urllib2.Request('http://nightsc.com.br/aa/novo_log.php', dados) | |
res = urllib2.urlopen(req) | |
pagina = res.read () | |
print pagina |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment