|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Tags |
| html, page, sending, socket |
| Thread Tools | |
| Display Modes | |
|
|