I made a local GUI
which requires the users to enter their usernames and passwords. Once they click submit, I want to have a pop out window which directs them to a website with their personal information through POST
, which requires a request. I know that there is webbroswer.open()
to open a website, but it doesn't take any requests, how would I be able to do what I want it to do? I am using django 1.6
and python 2.7
Solution #1)
skip all this and see Rjzheng's link below -- it's much simpler.
Solution #2)
Since webbrowser.open()
doesn't take POST args:
1) write a javascript page which accepts args via GET, then does an Ajax POST
2) have webbbrowser.open()
open URL from step #1
Not glamorous, but it'll work :)
Be careful with security, you don't want to expose someone's password in the GET URL!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.