Hi i want to read multiple data from stdin like this:
Comand name:number name:number ...
void app() {
char line[INBUFF];
if (fgets(line, sizeof(line), stdin) != NULL) {
sscanf(line, "%s", comand);
verify(comand);
...
}
I want to do...
hi i´m doing a sockets program that receives a request from a browser
GET /file.jpg HTTP/1.0
and the server answer is of the type:
HTTP/1.0 200 OK
content-lenght:500
and then sends the content of the file.
I have 2 problems:
- the request must be of the type GET /file.jpg HTTP/1.0 followed by...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.