you are viewing a single comment's thread.

view the rest of the comments →

[–]CANDYASSES[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (3 children)

i get that, but this webpage shows the basic communications protocol,

https://www.cuelogic.com/blog/websocket-handshaking

i am writing my webserver in straight c language using the "codeblocks" programming system.

https://www.codeblocks.org

[–]fschmidt 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (2 children)

That webpage only shows the transition from HTTP to websockets. It doesn't show any actually websockets communications.

Why are you writing a webserver? You can use my webserver for Java described here.

[–]CANDYASSES[S] 1 insightful - 2 fun1 insightful - 1 fun2 insightful - 2 fun -  (1 child)

my purpose for writing a webserver in pure C language is so that i get to formulate my own http requests and i can decide which header information is included.. my preference is to remain brief.

i get to custom engineer a purely customized HTTP PAGE REQUEST and i get to read the RAW RESPONSE.

i get complete control over the entire process.

btw, my javascript skills are very weak and so if i can figure out how to issue a GET request from javascript that is part of my webpage

oh, i just remembered, isnt there a javascript information site at http://irt.org

i am gonna check.

at the http://irt.org page you can click on "javascript faq" or click here: https://irt.org/script/script.htm

good javascript learning site.

[–]fschmidt 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Do you want a web client or a web server?

To do a GET request from javascript, use XMLHttpRequest.