Skip to content

Instantly share code, notes, and snippets.

@automata
Created July 20, 2011 03:51
Show Gist options
  • Save automata/1094304 to your computer and use it in GitHub Desktop.
Save automata/1094304 to your computer and use it in GitHub Desktop.
requisicao aa
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