News for hackers. Stuff that matters.
Re:Show HN: bashttp - a very (very) simple web server in Bash by sshd on Tuesday July 19, 2022 @11:34PM (#32161089)
+1 on this. Would love to see this using bash built-ins if possible. /dev/tcp might be a start.
Re:Show HN: bashttp - a very (very) simple web server in Bash by BenjiWiebe on Wednesday July 20, 2022 @12:33AM (#32161452)
I believe the issue is that bash has no built-in method for creating a listening socket / accepting connections.

/dev/tcp can only connect to a listening socket, not create one.

Re:Show HN: bashttp - a very (very) simple web server in Bash by rascul on Wednesday July 20, 2022 @07:03AM (#32163986)
Re:Show HN: bashttp - a very (very) simple web server in Bash by EddySchauHai on Wednesday July 20, 2022 @12:37AM (#32161472)
I definitely want to try work this out but I couldn't find much in the way of documentation, I'll give it a go when I have more time :)
Re:Show HN: bashttp - a very (very) simple web server in Bash by arjvik on Wednesday July 20, 2022 @12:33AM (#32161455)
That only works for outgoing connections, sadly