This is a discussion on Sending HTML page with a socket within the Linux Networking forums, part of the Linux Forums category; Hi All, Here is my problem : I try to send an HTML page with a socket. I do the following : ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi All,
Here is my problem : I try to send an HTML page with a socket. I do the following : 1 listen 2 accept 3 send until now I can see the page on the browser. But if I do a close(socket), the page disappears on the browser window. What should I do to close the socket and still have my page on the browser ? I tried with sendto(), write() but got the same result. Maybe there is a better way to do this... THX for your help. |
|
|||
|
Farid Benzakour wrote:
> Hi All, > > Here is my problem : > I try to send an HTML page with a socket. > I do the following : > > 1 listen > 2 accept > 3 send > > until now I can see the page on the browser. But if I do a close(socket), > the page disappears on the browser window. What should I do to close the > socket and still have my page on the browser ? > I tried with sendto(), write() but got the same result. > Maybe there is a better way to do this... What does your response header look like? It sounds like you are not following the HTTP spec well enough. > THX for your help. -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com |