Advertisement
Fhernd

datos-formulario-web.py

Feb 9th, 2018
714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import urllib.request
  2.  
  3. datos = b'Receta Python No. 9-7: Enviar Datos a una Pagina Web'
  4.  
  5. solicitud = urllib.request.Request('https://form.blogspot.com/form_contacto', data=datos, method='POST')
  6.  
  7. # Inicio solicitud:
  8. formulario = urllib.request.urlopen(solicitud)
  9.  
  10. print(formulario.status)
  11. print(formulario.reason)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement