[Gambas-user] Trouble writing to Accepted Socket stream

Cedron Dawg cedron at exede.net
Sat Mar 30 00:59:38 CET 2019


Here's a better source:

https://www.ntu.edu.sg/home/ehchua/programming/webprogramming/HTTP_Basics.html

I fired up my TcpSimpleServer, listened on 3450.

Typed "localhost:3450" in my Firefox Browser.

This is what the server received:


-------------------------
Accepting connection from --> 127.0.0.1
Received data -->GET / HTTP/1.1
Host: localhost:3450
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1

-------------------------

Then the browser spins its wheel....

More interesting.


telnet localhost 3450

type something in.  Server console prints it.

But.....

Pressing Ctrl-C in telnet causes the Gambas to disappear.  I have to start it again.




More information about the User mailing list