i been working (slowly) on a web browser and i gotten teh get command to be pretty good but the only problem is that on some servers they inculde in the file your downloading another copy of the header and/or insert gaps into the file
and on alot of servers (like these fourms) insert odd numbers inbeween chunks or have the chunks in a diffrent order then you see normaly
i find it hard to find a solid html file (or any file inculing images sounds and moives) that isn't mixed up or has anything added to it to mess up the content lenght that i am using to verify if the file is done downloading
so i trying to figure out WHY are they add such things to webservers...
http get and werid servers...
http get and werid servers...
~Dreglor
- tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
Re: http get and werid servers...
In the chunked transfer encoding the server is allowed to send entity headers at the end of each chunk. You need to ignore these and look for a blank line which indicates the end of the trailing headers.Dreglor wrote:servers they inculde in the file your downloading another copy of the header
That sounds like it could be the end of the trailers.and/or insert gaps into the file
And they are not just the lengths of the chunks?and on alot of servers (like these fourms) insert odd numbers inbeween chunks
If you are only downloading one file at a time, then it should come in in the correct chunk order. There doesn't appear to be any indicator in HTTP/1.1 for what chunk comes from whatever position.or have the chunks in a diffrent order then you see normaly
Have you got an example of the pages you are downloading? I mean the raw data as you download it (with all transfer encodings present), not the HTML file that is being transferred.i find it hard to find a solid html file (or any file inculing images sounds and moives) that isn't mixed up or has anything added to it to mess up the content lenght that i am using to verify if the file is done downloading
so i trying to figure out WHY are they add such things to webservers...
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)
well these headers are at the top and theres only 1 of them :/In the chunked transfer encoding the server is allowed to send entity headers at the end of each chunk. You need to ignore these and look for a blank line which indicates the end of the trailing headers.
no theses are huge like 20-30 lines of blank linesThat sounds like it could be the end of the trailers.
and they apper for a halfway into the file :/
they could be but i don't understand why couldn't they generate the file then find the final lenght...And they are not just the lengths of the chunks?
heres a exmple that is the most soild, but has an extra header and the gap
heres the file it big sorry :/
and this is not raw (the program removed the server header thats all)
Code: Select all
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Martin Schweiger">
<meta name="Description" content="Orbiter is a free 3D space flight simulator using real phyHTTP/1.1 200 OK
Date: Tue, 13 Jan 2004 21:17:23 GMT
Server: Apache/2.0.44 (Unix)
Last-Modified: Wed, 17 Dec 2003 23:25:46 GMT
ETag: "4d44-3415-6d29f280"
Accept-Ranges: bytes
Content-Length: 13333
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Martin Schweiger">
<meta name="Description" content="Orbiter is a free 3D space flight simulator using real physics">
<meta name="KEYWORDS" content="orbiter,simulator,space,flight,free,download,game,3D,realistic,astronomy,shuttle,simulateur,espace,weltraum">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title>Orbiter - A free space flight simulator</title>
<style type="text/css"><!--
a:link {
font-family: arial, helvetica, sans-serif;
color: #FFFFA0;
}
a:visited {
font-family: arial, helvetica, sans-serif;
color: #FFFFA0;
}
a:active {
font-family: arial, helvetica, sans-serif;
color: #FFFFA0;
}
a:link.navbar {
font-size: 12;
text-decoration: none;
color: #FFFFFF;
}
a:visited.navbar {
font-size: 12;
text-decoration: none;
color: #FFFFFF;
}
a:active.navbar {
font-size: 12;
text-decoration: none;
color: #FFFFFF;
}
p {
font-family: arial, helvetica, sans-serif;
color: #CCCCCC;
font-size: 12;
}
p.heading {
color: #FFFFFF;
font-weight: bold;
font-size: 16;
}
p.small {
font-size: 9;
}
p.navbar {
font-size: 12;
color: #A0A0C0;
}
ul {
font-family: arial, helvetica, sans-serif;
color: #CCCCCC;
font-size: 12;
list-style-type: square;
list-style-position: outside;
color: #A0A0C0;
padding-left: 20;
}
--></style>
</head>
<body text="#CCCCCC" bgcolor="#000000" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<img SRC="weblogo.jpg" ALT="ORBITER Space Flight Simulator" height=92 width=724>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=3 BGCOLOR="#000000" width=724 NOSAVE >
<tr NOSAVE>
<td VALIGN=TOP WIDTH="113" NOSAVE>
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 BGCOLOR="#000000" width=108 NOSAVE >
<tr><td width=8 bgcolor="#C0C0FF"></td><td width=92 bgcolor="#6060A0"><p class="navbar">Home</p></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="download.html" class="navbar">Download</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="faq.html" class="navbar">FAQ</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="manual.html" class="navbar">Manual</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href= "gallery.html" class="navbar">Gallery</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="change.html" class="navbar">Change Log</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="credit.html" class="navbar">Credit</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="disclaimer.html" class="navbar">Disclaimer</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="sites.html" class="navbar">Related Sites</a></td></tr>
<tr><td colspan="2" height=15></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="http://orbit.m6.net/v2/boardtalk.asp" class="navbar">Web Forum</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="http://firedrake.org/orbiter/list.html" class="navbar">Mail List</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="http://www.orbitmods.com/mantis/" class="navbar">Bug Tracker</a></td></tr>
<tr><td colspan="2" height=30></td></tr>
</table>
<center><hr width=100>
<p class="small">Orbiter is free - but if you like it, you can appreciate the work that has gone into creating it by making a donation.<br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="martins@medphys.ucl.ac.uk">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
Cheers!
<hr width=100></center></p>
<p><a href="http://www.avsim.com"><img SRC="avsim_partner_small.jpg" NOSAVE BORDER=0 height=28 width=110></a></p>
</td>
<td ALIGN=LEFT VALIGN=TOP ROWSPAN="2" WIDTH="434" BGCOLOR="#404040" NOSAVE>
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">About ORBITER</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
ORBITER is a free flight simulator that goes beyond
the confines of Earth's atmosphere. Launch the Space Shuttle from Kennedy
Space Center to deploy a satellite, rendezvous with the International Space
Station or take the futuristic
Delta-glider for a tour through the solar system - the choice is yours.<br>
But make no mistake - ORBITER is not a space
shooter. The emphasis is firmly on realism, and the learning curve can
be steep. Be prepared to invest some time and effort to brush up on your
orbital mechanics background. A good starting point is JPL's
<a href="http://www.jpl.nasa.gov/basics/">Space
Flight Learners' Workbook</a> - or you could tap into the accumulated knowledge
base of the <a href="http://orbit.m6.net/v2/boardtalk.asp">Orbiter
community</a> to get advice.
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td colspan="2" height=10 bgcolor="#000000"></td></tr>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">News</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
<b>December 17, 2003: <font color="#33FF33">Orbiter Patch 031217</font></b>
<p>In time to celebrate 100 years of powered flight (and 3+ years of Orbiter) I have released a new patch which fixes a number of recently reported bugs and adds some new features, including cloud shadows on planetary surfaces. Get your copy from one of the download mirrors. (If you already have the 031105 version installed, please download the patch, not the full version!)
<p>For more details, check the <a href="change.html">Change Log</a>.
<p><b>November 6, 2003: New release 031105</b>
<p>It has been a while in the making, but the latest ORBITER version has finally been released. Here are a few of the highlights:
<p>A completely re-worked atmospheric flight model provides more realism during atmospheric ascents and descents. Spacecraft can now define (and animate) aerodynamic control surfaces, so Shuttle landings are now a lot more realistic.
<p>Support for particle systems for more realistic engine exhaust and reentry rendering.
<p>Higher planetary texture resolutions: Orbiter now supports "resolution level 9" with an effective equatorial resolution of 16384 x 8192 pixels! A tile manager tool bundled with Orbiter allows to apply high resolution textures selectively.
<p>Space Shuttle Atlantis can now re-capture objects, so complex missions involving deployment and collection of satellites can be designed.
<p>New models for the International Space Station (by Andrew Farnaby), Space Shuttle Atlantis (by Don Gallagher) including External Tank and Solid Rocket Boosters (by Damir Gulesich), models for the HST (by David Sundstrom) and LDEF satellite (by Don Gallagher), and a new version of the DeltaGlider with animated control surfaces (by Roger Long). Improved surface textures for both the Moon (by Jens Meyer) and Venus (by Jim Williams).
<p>New MFD modes: Duncan Sharpe's TransX for calculating complex interplanetary missions is now bundled with Orbiter, together with a new Horizontal Situation Indicator to assist with surface navigation and instrument landings.
<p>New ground-based camera modes, and the ability to save and recall multiple camera settings.
<p>A more detailed list of new features can be found in the <a href="change.html">Change Log</a>.
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td colspan="2" height=10 bgcolor="#000000"></td></tr>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">Key features</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
<ul>
<li>
<font color="#CCCCCC">Realistic physics. Planetary motion, gravitation
effects, free space and atmospheric flight are accurately modelled.</font>
</li>
<li>
<font color="#CCCCCC">You can land your ship at a space port on a planet
surface, or dock to an orbital station.</font>
</li>
<li>
<font color="#CCCCCC">High resolution planetary maps provide some nice
visual effects.</font>
</li>
<li>
<font color="#CCCCCC">Configurable environment. Users can add planets,
space ships and space stations to the existing universe, or design a completely
new solar system from scratch. The Orbiter Software Development Kit contains
libraries and sample C++ code for addon developers who want to write plugins.</font>
</li>
</ul>
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td colspan="2" height=10 bgcolor="#000000"></td></tr>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">Disclaimer</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
<ul>
<li>
<font color="#CCCCCC">ORBITER is an ongoing project and not a finished
product in any sense. I may upgrade it from time to time and post new releases
at this site.</font></li>
<li>
<font color="#CCCCCC">I provide the software as is, without any support
whatsoever. I do not accept any responsibility for problems arising from
its use. See the
<a href="disclaimer.html">Disclaimer</a>
page for details.</font></li>
</ul>
</td>
<td ALIGN=RIGHT VALIGN=TOP ROWSPAN="2" WIDTH="177" NOSAVE>
<div align=right>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=1 width=172>
<tr><td><a href="images/gallery45.jpg"><img SRC="images/pic45.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery48.jpg"><img SRC="images/pic48.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery51.jpg"><img SRC="images/pic51.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery46.jpg"><img SRC="images/pic46.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery50.jpg"><img SRC="images/pic50.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery52.jpg"><img SRC="images/pic52.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery53.jpg"><img SRC="images/pic53.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
</table>
</div>
</td>
</tr>
<tr>
<td VALIGN=BOTTOM WIDTH="113" NOSAVE>
<center><p class="small">
<a href="http://www.digits.com">Web counter</a>:
<br>You are visitor
<br><img SRC="http://counter.digits.com/wc/-d/7/-z/-r/-c/12/orbiter_sfs_counter" HSPACE=4 VSPACE=2 NOSAVE BORDER=0 height=20 width=105 align=ABSCENTER>
<br>since 22 Nov 2000.</p>
<a href="http://v.extreme-dm.com/?login=orbitsfs" target="_top"><img SRC="http://v1.extreme-dm.com/i.gif" NAME="im" NOSAVE BORDER=0 height=38 width=41></a><script language="javascript"><!--
an=navigator.appName;d=document;function
pr(){d.write("<img src=\"http://v0.extreme-dm.com",
"/0.gif?tag=orbitsfs&j=y&srw="+srw+"&srb="+srb+"&",
"rs="+r+"&l="+escape(d.referrer)+"\" height=1 ",
"width=1>");}srb="na";srw="na";//-->
</script>
<script language="javascript1.2"><!--
s=screen;srw=s.width;an!="Netscape"?
srb=s.colorDepth:srb=s.pixelDepth;//-->
</script>
<script language="javascript"><!--
r=41;d.images?r=d.im.width:z=0;pr();//-->
</script>
<noscript><img SRC="0.gif" ALT="
so here it is, edit for some reason it would post the whole thing :/ mayt it was to long...
~Dreglor
Code: Select all
HTTP/1.1 200 OK
Date: Tue, 13 Jan 2004 23:23:59 GMT
Server: Apache/2.0.44 (Unix)
Last-Modified: Wed, 17 Dec 2003 23:25:46 GMT
ETag: "4d44-3415-6d29f280"
Accept-Ranges: bytes
Content-Length: 13333
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Martin Schweiger">
<meta name="Description" content="Orbiter is a free 3D space flight simulator using real physics">
<meta name="KEYWORDS" content="orbiter,simulator,space,flight,free,download,game,3D,realistic,astronomy,shuttle,simulateur,espace,weltraum">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title>Orbiter - A free space flight simulator</title>
<style type="text/css"><!--
a:link {
font-family: arial, helvetica, sans-serif;
color: #FFFFA0;
}
a:visited {
font-family: arial, helvetica, sans-serif;
color: #FFFFA0;
}
a:active {
font-family: arial, helvetica, sans-serif;
color: #FFFFA0;
}
a:link.navbar {
font-size: 12;
text-decoration: none;
color: #FFFFFF;
}
a:visited.navbar {
font-size: 12;
text-decoration: none;
color: #FFFFFF;
}
a:active.navbar {
font-size: 12;
text-decoration: none;
color: #FFFFFF;
}
p {
font-family: arial, helvetica, sans-serif;
color: #CCCCCC;
font-size: 12;
}
p.heading {
color: #FFFFFF;
font-weight: bold;
font-size: 16;
}
p.small {
font-size: 9;
}
p.navbar {
font-size: 12;
color: #A0A0C0;
}
ul {
font-family: arial, helvetica, sans-serif;
color: #CCCCCC;
font-size: 12;
list-style-type: square;
list-style-position: outside;
color: #A0A0C0;
padding-left: 20;
}
--></style>
</head>
<body text="#CCCCCC" bgcolor="#000000" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<img SRC="weblogo.jpg" ALT="ORBITER Space Flight Simulator" height=92 width=724>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=3 BGCOLOR="#000000" width=724 NOSAVE >
<tr NOSAVE>
<td VALIGN=TOP WIDTH="113" NOSAVE>
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 BGCOLOR="#000000" width=108 NOSAVE >
<tr><td width=8 bgcolor="#C0C0FF"></td><td width=92 bgcolor="#6060A0"><p class="navbar">Home</p></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="download.html" class="navbar">Download</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="faq.html" class="navbar">FAQ</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="manual.html" class="navbar">Manual</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href= "gallery.html" class="navbar">Gallery</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="change.html" class="navbar">Change Log</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="credit.html" class="navbar">Credit</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="disclaimer.html" class="navbar">Disclaimer</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="sites.html" class="navbar">Related Sites</a></td></tr>
<tr><td colspan="2" height=15></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="http://orbit.m6.net/v2/boardtalk.asp" class="navbar">Web Forum</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="http://firedrake.org/orbiter/list.html" class="navbar">Mail List</a></td></tr>
<tr><td colspan="2" height=4></td></tr>
<tr><td width=8 bgcolor="#A0A0C0"></td><td width=92 bgcolor="#404080"><a href="http://www.orbitmods.com/mantis/" class="navbar">Bug Tracker</a></td></tr>
<tr><td colspan="2" height=30></td></tr>
</table>
<center><hr width=100>
<p class="small">Orbiter is free - but if you like it, you can appreciate the work that has gone into creating it by making a donation.<br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="martins@medphys.ucl.ac.uk">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
Cheers!
<hr width=100></center></p>
<p><a href="http://www.avsim.com"><img SRC="avsim_partner_small.jpg" NOSAVE BORDER=0 height=28 width=110></a></p>
</td>
<td ALIGN=LEFT VALIGN=TOP ROWSPAN="2" WIDTH="434" BGCOLOR="#404040" NOSAVE>
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">About ORBITER</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
ORBITER is a free flight simulator that goes beyond
the confines of Earth's atmosphere. Launch the Space Shuttle from Kennedy
Space Center to deploy a satellite, rendezvous with the International Space
Station or take the futuristic
Delta-glider for a tour through the solar system - the choice is yours.<br>
But make no mistake - ORBITER is not a space
shooter. The emphasis is firmly on realism, and the learning curve can
be steep. Be prepared to invest some time and effort to brush up on your
orbital mechanics background. A good starting point is JPL's
<a href="http://www.jpl.nasa.gov/basics/">Space
Flight Learners' Workbook</a> - or you could tap into the accumulated knowledge
base of the <a href="http://orbit.m6.net/v2/boardtalk.asp">Orbiter
community</a> to get advice.
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td colspan="2" height=10 bgcolor="#000000"></td></tr>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">News</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
<b>December 17, 2003: <font color="#33FF33">Orbiter Patch 031217</font></b>
<p>In time to celebrate 100 years of powered flight (and 3+ years of Orbiter) I have released a new patch which fixes a number of recently reported bugs and adds some new features, including cloud shadows on planetary surfaces. Get your copy from one of the download mirrors. (If you already have the 031105 version installed, please download the patch, not the full version!)
<p>For more details, check the <a href="change.html">Change Log</a>.
<p><b>November 6, 2003: New release 031105</b>
<p>It has been a while in the making, but the latest ORBITER version has finally been released. Here are a few of the highl ights:
<p>A completely re-worked atmospheric flight model provides more realism during atmospheric ascents and descents. Spacecraft can now define (and animate) aerodynamic control surfaces, so Shuttle landings are now a lot more realistic.
<p>Support for particle systems for more realistic engine exhaust and reentry rendering.
<p>Higher planetary texture resolutions: Orbiter now supports "resolution level 9" with an effective equatorial resolution of 16384 x 8192 pixels! A tile manager tool bundled with Orbiter allows to apply high resolution textures selectively.
<p>Space Shuttle Atlantis can now re-capture objects, so complex missions involving deployment and collection of satellites can be designed.
<p>New models for the International Space Station (by Andrew Farnaby), Space Shuttle Atlantis (by Don Gallagher) including External Tank and Solid Rocket Boosters (by Damir Gulesich), models for the HST (by David Sundstrom) and LDEF satellite (by Don Gallagher), and a new version of the DeltaGlider with animated control surfaces (by Roger Long). Improved surface textures for both the Moon (by Jens Meyer) and Venus (by Jim Williams).
<p>New MFD modes: Duncan Sharpe's TransX for calculating complex interplanetary missions is now bundled with Orbiter, together with a new Horizontal Situation Indicator to assist with surface navigation and instrument landings.
<p>New ground-based camera modes, and the ability to save and recall multiple camera settings.
<p>A more detailed list of new features can be found in the <a href="change.html">Change Log</a>.
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td colspan="2" height=10 bgcolor="#000000"></td></tr>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">Key features</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
<ul>
<li>
<font color="#CCCCCC">Realistic physics. Planetary motion, gravitation
effects, free space and atmospheric flight are accurately modelled.</font>
</li>
<li>
<font color="#CCCCCC">You can land your ship at a space port on a planet
surface, or dock to an orbital station.</font>
</li>
<li>
<font color="#CCCCCC">High resolution planetary maps provide some nice
visual effects.</font>
</li>
<li>
<font color="#CCCCCC">Configurable environment. Users can add planets,
space ships and space stations to the existing universe, or design a completely
new solar system from scratch. The Orbiter Software Development Kit contains
libraries and sample C++ code for addon developers who want to write plugins.</font>
</li>
</ul>
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td colspan="2" height=10 bgcolor="#000000"></td></tr>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">Disclaimer</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
<ul>
<li>
<font color="#CCCCCC">ORBITER is an ongoing project and not a finished
product in any sense. I may upgrade it from time to time and post new releases
at this site.</font></li>
<li>
<font color="#CCCCCC">I provide the software as is, without any support
whatsoever. I do not accept any responsibility for problems arising from
its use. See the
<a href="disclaimer.html">Disclaimer</a>
page for details.</font></li>
</ul>
</td>
<td ALIGN=RIGHT VALIGN=TOP ROWSPAN="2" WIDTH="177" NOSAVE>
<div align=right>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=1 width=172>
<tr><td><a href="images/gallery45.jpg"><img SRC="images/pic45.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery48.jpg"><img SRC="images/pic48.jpg" NOSAVE BORDER=0 height=129 width=172>3+ years of Orbiter) I have released a new patch which fixes a number of recently reported bugs and adds some new features, including cloud shadows on planetary surfaces. Get your copy from one of the download mirrors. (If you already have the 031105 version installed, please download the patch, not the full version!)
<p>For more details, check the <a href="change.html">Change Log</a>.
<p><b>November 6, 2003: New release 031105</b>
<p>It has been a while in the making, but the latest ORBITER version has finally been released. Here are a few of the highl </a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery51.jpg"><img SRC="images/pic51.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery46.jpg"><img SRC="images/pic46.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery50.jpg"><img SRC="images/pic50.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery52.jpg"><img SRC="images/pic52.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
<tr><td height=6></td></tr>
<tr><td><a href="images/gallery53.jpg"><img SRC="images/pic53.jpg" NOSAVE BORDER=0 height=129 width=172></a></td></tr>
</table>
</div>
</td>
</tr>
<tr>
<td VALIGN=BOTTOM WIDTH="113" NOSAVE>
<center><p class="small">
<a href="http://www.digits.com">Web counter</a>:
<br>You are visitor
<br><img SRC="http://counter.digits.com/wc/-d/7/-z/-r/-c/12/orbiter_sfs_counter" HSPACE=4 VSPACE=2 NOSAVE BORDER=0 height=20 width=105 align=ABSCENTER>
<br>since 22 Nov 2000.</p>
<a href="http://v.extreme-dm.com/?login=orbitsfs" target="_top"><img SRC="http://v1.extreme-dm.com/i.gif" NAME="im" NOSAVE BORDER=0 height=38 width=41></a><script language="javascript"><!--
an=navigator.appName;d=document;function
pr(){d.write("<img src=\"http://v0.extreme-dm.com",
"/0.gif?tag=orbitsfs&j=y&srw="+srw+"&srb="+srb+"&",
"rs="+r+"&l="+escape(d.referrer)+"\" height=1 ",
"width=1>");}srb="na";srw="na";//-->
</script>
<script language="javascript1.2"><!--
s=screen;srw=s.width;an!="Netscape"?
srb=s.colorDepth:srb=s.pixelDepth;//-->
</script>
<script language="javascript"><!--
r=41;d.images?r=d.im.width:z=0;pr();//-->
</script>
<noscript><img SRC="0.gif" ALT="" height=1 width=1></noscript></center>
</td>
</tr>
</table>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=3 BGCOLOR="#000000" width=724 NOSAVE >
<tr NOSAVE><td>
<center><p><font color="#C0C0FF"><i>
Author: ORBITER is written and maintained by
Martin Schweiger (c)2000-2003. All rights reserved.</i>
<br><i>Last update: 17 December 2003.</i></font></center>
</td></tr></table>
</body>
</html>
color="#CCCCCC">High resolution planetary maps provide some nice
visual effects.</font>
</li>
<li>
<font color="#CCCCCC">Configurable environment. Users can add planets,
space ships and space stations to the existing universe, or design a completely
new solar system from scratch. The Orbiter Software Development Kit contains
libraries and sample C++ code for addon developers who want to write plugins.</font>
</li>
</ul>
<table BORDER=0 CELLSPACING=0 CELLPADDING=2 COLS=2 width=434>
<tr><td colspan="2" height=10 bgcolor="#000000"></td></tr>
<tr><td width=14 BGCOLOR="#A0A0C0"></td><td bgcolor="#202060"><p class="heading">Disclaimer</p></td></tr>
<tr><td colspan="2" height=4 bgcolor="#A0A0C0"></td></tr>
</table><p>
<ul>
<li>
<font color="#CCCCCC">ORBITER is an ongoing project and not a finished
product in any sense. I may upgrade it from time to time and post new releases
at this site.</font></li>
<li>
<font color="#CCCCCC">I provide the software as is, without any support
whatsoever. I do not accept any responsibil
the only thing i can explain these gaps is that don't try to find the end of the chunk i just write the whole memory buffer which at the time i was thinking it would be nothing and it wouldn't be a problem because it was writing nothing
this a bit odd if thats the case but it doesn't always happen with all of the sites i go to...
~Dreglor
- tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
I just tried the same server as you (I think - www.medphys.ucl.ac.uk/~martins/orbit/orbit.html) with some HTTP code I wrote a while ago and I did not have any problems with gaps, chunks being out of order or the end of the file being cut off.
So I can only guess that there is some bug in your code, probably where you are getting the network events and extracting the data from the buffer. Are you sure you are completely clearing the buffer after you have finished processing a chunk and you are not writing extra spaces or something to your output file?
So I can only guess that there is some bug in your code, probably where you are getting the network events and extracting the data from the buffer. Are you sure you are completely clearing the buffer after you have finished processing a chunk and you are not writing extra spaces or something to your output file?
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)
If you haven't already done so, your best bet might be to go to http://www.w3c.org which gives the standards for HTTP/HTML, which includes things like compacting sequential whitespace into one space.
If the page is dynamic then the script that generated it can leave whitespace (blank-line/newline) gaps.
Eg in ASP:
will leave a blank line where the script was, and lots of script snippets will leave lots of blank lines:
Which, if all conditions fail, leaves a chunk of blanks because the newline at the end of each closing tag is sent, being outside of the tag.
As far as I know content chunks should arrive at the client in the correct order - the next chunk isn't sent until the last one is acknowledged - but don't quote me on this, check w3c.
If the page is dynamic then the script that generated it can leave whitespace (blank-line/newline) gaps.
Eg in ASP:
Code: Select all
<p>
<%
while flag=1
.. dosomething
wend
%>
</p>Code: Select all
<% if condition %>
HTML
<% elseif condition %>
More HTML
<% end if >As far as I know content chunks should arrive at the client in the correct order - the next chunk isn't sent until the last one is acknowledged - but don't quote me on this, check w3c.
well i got the gap problem fixed 
but the content lenght is still being messed up
i try to test my program on alot of web sites so i won't post every website source i get
i have the content-lenght as a when-to-stop (by using lof() instuction) and it reads the content lenght right becasue i checked sevral times
so for an example (these are real world numbers) the site had 73892 as the lenght and when it stop sending (not using the content-lenght but a time out to finds the end) the program got was 87589 and the very end (the </html> text)was still missing
so this make me wonder if the content-lenght is only reading chr(13) for a new line and not chr(13) and chr(10) this makes me wonder if i should do some testing about this
but the content lenght is still being messed up
i try to test my program on alot of web sites so i won't post every website source i get
i have the content-lenght as a when-to-stop (by using lof() instuction) and it reads the content lenght right becasue i checked sevral times
so for an example (these are real world numbers) the site had 73892 as the lenght and when it stop sending (not using the content-lenght but a time out to finds the end) the program got was 87589 and the very end (the </html> text)was still missing
so this make me wonder if the content-lenght is only reading chr(13) for a new line and not chr(13) and chr(10) this makes me wonder if i should do some testing about this
~Dreglor
- tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
- Contact:
The content length is just the number of bytes in the data you get sent. It has no special considerations for line endings or any other things which might be in the data.
What have you used as your network code when recieving the data?
What have you used as your network code when recieving the data?
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
(WinXPhSP3 PB5.20b14)
