Hi,
I'm new to C/C++ but have worked with PHP for years and want to make a program to tie in with my web applications.
I want to write a program that listens on port 80 for incoming HTTP/HTTPS traffic to a web browser. Then checks HTTP headers from a list, if header(s) are present then save it to a text file and remove header before sending to back to the browser.
Example
HTTP/1.1 200 OK
Content-type: text/html
X-Gateway-Id: value
(content of page)
So the server sends the above HTTP response and the program removes "X-Gateway-Id: value" and stores in text file and sends the following to the web browser:
HTTP/1.1 200 OK
Content-type: text/html
(content of page)
Please if you could show me links that would help or some examples that would be great.
Thanks