[Answer]-How to use webbrowser.open() with request in python

1👍

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!

Leave a comment