New topic: TCPSocket.Write() mime types
<http://forums.realsoftware.com/viewtopic.php?t=46394> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message pperroud Post subject: TCPSocket.Write() mime typesPosted: Mon Dec 31, 2012 5:40 am Joined: Sun May 21, 2006 12:19 pm Posts: 34 Hello, When I write html data to RB's TCPSocket, the data is received as text/plain mime type and 8859-1 encoding by Firefox and this is an issue to my web server ServiceApplication that handles requests from web browsers on a private intranet. This service core procedure is based on a sample code from RB 2012.r2 @ /Example Projects/Communication/Internet/Web Server. This sample code is not working with Firefox as Firefox is getting the socket reply as plain text truly: html tags are just ignored and the entire data chunk is wrapped by <pre> tags for plain text display in Firefox. As a result, Firefox is showing html data as plain text when Chrome or Safari are smart enough to handle it as text/html even using the UTF8 encoding as defined in the html header. To my understanding this is not really a bug in Firefox that could hardly be blamed for handling the data my server is sending just like it was written to the TCPSocket. A correction would be to have the html data sent as text/html and UTF8 thru a TCPSocket Write() instead of default text/plain and 8859-1 encoding... Therefore my question is: how could I configure a TCPSocket to make sure the client browser at the other end will get it loud and clear that this is not text/plain but text/html data - to be handled as HTML and not plain text by Firefox? _________________ http://p.perroud.free.fr/ Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
