c++ - How to receive HTTP GET and POST requests in C socket program? -


i trying create small c socket server. server sends out http/html responses fine enough. clients sending html requests , clients can different devices - mobile apps, browsers etc. need log requests type of devices requesting what.

i happen know browser sends cookies , user-agent info server , want server able record cookie , user-agent strings well.

so how enable reading of http headers in c/c++ server?

what trying read socket. using recv, problem solved. thinking complex while solution simple.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -