/web-server

A web server implementation of RFC 2616

Primary LanguageC

Web Server

A web server that implements a subset of the HTTP 1.1 RFC 2616 using socket API in C.

Instructions

  • Server: ./lisod

  • Client: nc localhost 9034 < test_request.txt

References

Troubleshooting

Error: Cannot load symbol file

In case you’d like to debug Linux target from macOS host, you have to use GDB version compiled with --target=x86_64-linux-gnu flag. Get the binutils-gdb sources from the Git repository, switch branch to gdb-7.11.1-release and build like this:

./configure --disable-werror --target=x86_64-linux-gnu --prefix=/Users/kylin1989/Downloads/binutils-gdb-linux
make
make install

Then select this debugger in the remote GDB configuration.

https://blog.jetbrains.com/clion/2016/07/clion-2016-2-eap-remote-gdb-debug/

Error: 'sbrk' has been explicitly marked deprecated here" when compiling binutils-gdb

Use argument when running ./configure :

    --disable-werror

http://stackoverflow.com/questions/20426213/error-building-ellcc

Error: 'Segmentation Errror'

Add 2 lines at the end of the reuqests.