Sending HTML page with a socket

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 : ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-11-2003
Farid Benzakour
 
Posts: n/a
Default Sending HTML page with a socket

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.




Reply With Quote
  #2 (permalink)  
Old 12-11-2003
Phil Frisbie, Jr.
 
Posts: n/a
Default Re: Sending HTML page with a socket

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0