Home > Archive > Unix Programming > March 2004 > Re: Newb Q: Server prog reqd to send files, how?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Newb Q: Server prog reqd to send files, how?
|
|
|
|
"Marc Rochkind" <rochkind@basepath.com> wrote in message
news:FZednRwPX-lasc7dRVn-iQ@speakeasy.net...
> "Sal" <sallas@dodo.com.au> wrote in message
> news:4052ce82$0$22524$5a62ac22@freenews.iinet.net.au...
> to
deliver[color=darkred]
> a
but[color=darkred]
> to
client.[color=darkred]
> grab
>
> By definition, a Web server implements the server side of HTTP, which is
> specified by RFC ("Request for Comments") 2616, which you can read here:
>
> http://www.w3.org/Protocols/rfc2616/rfc2616.html
>
> There's a simple example of a Web server here:
>
> http://basepath.com/aup/ex/group__AUP2ex.html
>
> (Look in the examples for Chap. 8)
>
> --
> Marc Rochkind
> "Advanced UNIX Programming" (publishing April 2004)
> www.basepath.com/aup
>
>
Thanks all, what I really needed was to use:
file = fopen("homepage.html","r");
fread((void*)buffer,1,1023,file);
write(CS_sock,buffer,strlen(buffer));
(with other error code).
|
|
|
|
|