You are not logged in.

#676 2021-02-25 15:56:48

progandy
Member
Registered: 2012-05-17
Posts: 4,355

Re: qutebrowser - A keyboard-driven, vim-like browser based on PyQt5

SataMaxx wrote:

I had the following user agent:

c.content.headers.user_agent = 'Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/68.0'

Reverting to the default one fixed this. (I chose to "advertise" myself as using Firefox to prop up the little guy, but it seems reCaptcha doesn't like this user agent)

It would have probably worked if you updated rv:31.0 to  rv:68.0. Firefox v31 would be from 2014, google might not like that.

Last edited by progandy (2021-02-25 15:59:52)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#677 2021-02-28 21:33:05

SataMaxx
Member
Registered: 2011-08-07
Posts: 22

Re: qutebrowser - A keyboard-driven, vim-like browser based on PyQt5

Ha! Nice catch!
I don't remember how I ended up with a mismatched user agent… but it works now! Thanks!

Offline

#678 2021-04-18 15:57:45

cajm
Member
From: Patagonia
Registered: 2020-12-26
Posts: 11

Re: qutebrowser - A keyboard-driven, vim-like browser based on PyQt5

Last night I commented on a bug report. This morning when I opened my laptop I pressed 'r' to see if there were any more comments. To my surprise it duplicated the comment. I didn't quite believe my eyes so I tried it again to be sure, and there popped a third copy of the comment. Has anyone else had that happen? Is that expected?


C is a nice language. Semicolon.

Offline

#679 2021-04-18 16:35:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,292

Re: qutebrowser - A keyboard-driven, vim-like browser based on PyQt5

That would likely happen in most browsers - it is mostly an issue with the website, not the browser as the page uses the same url for submitting comments as for viewing the bug (i.e., it doesn't redirect on accepting the POST data).  So when you refresh, if your browser resends the data, you just get a new comment.  It's generally considered good practice for web pages to *not* do this and rather use a different url for submission and presentation - or have some other guard against duplicate POSTs.  Some browsers may also warn about a refresh that would resend POST data - but it's not really the browser's job to do so.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#680 2021-04-18 17:29:29

cajm
Member
From: Patagonia
Registered: 2020-12-26
Posts: 11

Re: qutebrowser - A keyboard-driven, vim-like browser based on PyQt5

Okay, makes sense. Now that I think of it firefox would probably have had a 'confirm resubmission' popup.


C is a nice language. Semicolon.

Offline

Board footer

Powered by FluxBB