Hi everyone,
I'm creating a desktop Python application that requires web-based
authentication for accessing additional application features.
HTTP GET is really simple.
HTTP POST is not (at least for me anyway) ;)
I have tried a few different sources, but I cannot get HTTP POST to
successfully log in. I can login using FireFox at
I suggest you register a dummy login to see what I mean (don't enter
your real e-mail address).
Now here's some code:
------------------------------------------------------------------------------
msparams = urllib.urlencod e({'user': self.components .User.text,
'pass': self.components .MagnetSharePas sword.text, 'sublogin': '1'})
try:
f = urllib() ***What should go here?***
fc = f.read()
fc.close()
except:
self.statusBar. text = "Disconnect ed"
result = dialog.alertDia log(self, 'Couldn\'t connect to
MagnetShare.com ! Please check your Internet connection, and then try
again.')
else:
print fc
-------------------------------------------------------------------------------
Also, could you let us know what modules we should import?
Thanks for checking this out!
By the way, the PHP system I'm using is super easy to set up:
I'm creating a desktop Python application that requires web-based
authentication for accessing additional application features.
HTTP GET is really simple.
HTTP POST is not (at least for me anyway) ;)
I have tried a few different sources, but I cannot get HTTP POST to
successfully log in. I can login using FireFox at
I suggest you register a dummy login to see what I mean (don't enter
your real e-mail address).
Now here's some code:
------------------------------------------------------------------------------
msparams = urllib.urlencod e({'user': self.components .User.text,
'pass': self.components .MagnetSharePas sword.text, 'sublogin': '1'})
try:
f = urllib() ***What should go here?***
fc = f.read()
fc.close()
except:
self.statusBar. text = "Disconnect ed"
result = dialog.alertDia log(self, 'Couldn\'t connect to
MagnetShare.com ! Please check your Internet connection, and then try
again.')
else:
print fc
-------------------------------------------------------------------------------
Also, could you let us know what modules we should import?
Thanks for checking this out!
By the way, the PHP system I'm using is super easy to set up:
Comment