HEAD
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content.
GET
Requests a representation of the specified resource. Note that GET should not be used for operations that cause side-effects, such as using it for taking actions in web applications....
User Profile
Collapse
-
using RFC2616
Using RFC2616 what is the difference between a server response to the HEAD and GET client requests?
thanks -
difference between?
in c (and/or) c++ what is the difference between variables declared as: char[] and char*?
thanks -
Usage: server port?
hi
when i compile and run something i get this message
http://tinypic.com/r/cj9f9/5
what does this mean?... -
"Add an if condition that will write the whole file to the network socket if the command string
in cmd is equal to GET. The body of the if that sends the file contents will have to be a loop. The loop will read the
whole contents of the previously opened file using file descriptor fd and write the contents to newsck. Read into, and
write from, the array fbuf. The array is 512 bytes long so that is why a loop is needed"...Leave a comment:
-
i tried calling read rather than fread and it makes more errors
im totally stuckLeave a comment:
-
-
BEGINNER c++ programmer help please
hi
this is my code
Code:#include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <stdlib.h> #include <string.h> #include <iostream> #include <fcntl.h> using namespace std; extern int makeserversocket(const char *); const char *notimp="HTTP/1.0 501 Method Not Implemented\r\n"
No activity results to display
Show More
Leave a comment: