flat assembler
Message board for the users of flat assembler.

Index > Feedback > lynx 2.9.0 dev 10 unable to log in

Author
Thread Post new topic Reply to topic
sylware



Joined: 23 Oct 2020
Posts: 80
Location: Marseille/France
sylware
Anybody can log in with a lynx 2.9.0 dev10?

With my build, I cannot.

Sad
Post 01 Nov 2021, 01:32
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 161
Location: Russia
macomics
lynx 2.8.9 dev16 too Sad
Post 01 Nov 2021, 15:45
View user's profile Send private message Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 470
Ali.Z
why lynx, why not use w3m

_________________
Asm For Wise Humans
Post 01 Nov 2021, 17:28
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 161
Location: Russia
macomics
I like cats better (ツ)
Post 01 Nov 2021, 19:23
View user's profile Send private message Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 80
Location: Marseille/France
sylware
It does not seem to be a "user agent" header field filtering issue. I guess I should post a bug report to the lynx guys on their mailing list then (hope their mailing list will not trash my emails if they use those horrible spamhaus blocklists).

@ali.z yeah, I should have a w3m build, but I don't recall why building it did spook me away (I may check it out again and post why).

I should have a netsurf build too... but... building GTK+ is a nightmare (but it is much less toxic than qt).

... and I should test edbrowse too.

---- post edit

I problably did not build w3m because of the garbage collector: I do write by own build script when cmake is used (the only one I am forced to tolerate is that diarreha of llvm).

I did already send an email to lynx-dev mailing list... but my email never arrived even though the smtp response was ok (no greylisting).
Post 01 Nov 2021, 19:58
View user's profile Send private message Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 470
Ali.Z
sylware wrote:
I should have a w3m build, but I don't recall why building it did spook me away (I may check it out again and post why).
...
I problably did not build w3m because of the garbage collector: I do write by own build script


whats the problem of using the precompiled binary of w3m?
not sure about netsurf tho, for me I would use firefox over netsurf GUI. (I do use firefox most of the time, unless... read below)
however because my bandwidth is limited and it is not stable all the time, and this machine is running on intel's i3 7th gen CPU; I found w3m is lightweight and fast, and sometimes the only solution for visiting some websties that use heavy JS and other new technology that makes page loading extremely slow.

_________________
Asm For Wise Humans
Post 02 Nov 2021, 06:35
View user's profile Send private message Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 80
Location: Marseille/France
sylware
@ali.z:firefox is c++ diarreha, like chromium and safari, not to mention the highly toxic and insanely huge nightmare which are the "scripted" web specs. I'll probably build w3m one day if the garbage collector and libatomics_ops are not insane to configure and build (without cmake ofc).

Got a reply from one of the lynx devs, then I had a look at lynx trace file while trying to log in: I get cookie removal http header fields (namely with an expiration date in the past), and no session cookies. Something is really weird. I'll try to dig deeper, but it smells a lot like a server bug.

lynx is sending the following (edited to remove the password):
POST /login.php HTTP/1.1\r
Host: board.flatassembler.net\r
Connection: close\r
Accept: text/html, text/plain, text/sgml, text/css, */*;q=0.01\r
Accept-Encoding: gzip, bzip2\r
Accept-Language: en\r
Pragma: no-cache\r
Cache-Control: no-cache\r
User-Agent: Lynx/2.9.0dev.10 libwww-FM/2.14 SSL-MM/1.4.1\r
Referer: http://board.flatassembler.net/login.php\r
Content-type: application/x-www-form-urlencoded\r
Content-length: XX\r
\r
username=sylware&password=XXXXX&redirect=&login=Log+in
Post 02 Nov 2021, 20:23
View user's profile Send private message Reply with quote
redsock



Joined: 09 Oct 2009
Posts: 373
Location: Australia
redsock
This could be related to rwasa parsing of the submit itself, can you instead of your plaintext provide a hexdump -C or similar of the bytes it is sending?

I'll try and reproduce locally to verify soon.

_________________
2 Ton Digital - https://2ton.com.au/
Post 03 Nov 2021, 07:16
View user's profile Send private message Reply with quote
sylware



Joined: 23 Oct 2020
Posts: 80
Location: Marseille/France
sylware
redsock: cannot since I would have to give you my password Smile but don't worry, read below:

I did dive into it and found the bug, it is a server bug: lynx sends some "mixed-cased" header names which will make the server ignore the POST and rensend the login page.

I found the bug mimicing what I have in lynx trace file with curl: lynx sends 'Content-type' but curl and links2 send 'Content-Type'.

I am writing this post with lynx Smile

Need to report the bug to the heavything guys (you I guess... so it is probably done) and update the server handling the board.
Post 03 Nov 2021, 19:24
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.