Networking Forums

Networking Forums > Computer Networking > Linux Networking > Sending HTML page with a socket

Reply
Thread Tools Display Modes

Sending HTML page with a socket

 
 
Farid Benzakour
Guest
Posts: n/a

 
      12-11-2003, 01:56 PM
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
 
 
 
 
Phil Frisbie, Jr.
Guest
Posts: n/a

 
      12-11-2003, 04:07 PM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending socket descriptor to another pid Beagle Linux Networking 2 07-09-2008 09:56 PM
linux c socket read html problem step Linux Networking 2 06-13-2007 11:59 AM
Sending mail as HTML Jenda Mudron Linux Networking 1 07-27-2005 06:42 AM
A socket in a web page? Martin Linux Networking 16 02-17-2004 06:47 PM
interfere with sending html email Rick Wireless Internet 6 01-22-2004 10:29 PM



1 2 3 4 5 6 7 8 9 10 11