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.
well these headers are at the top and theres only 1 of them :/
That sounds like it could be the end of the trailers.
no theses are huge like 20-30 lines of blank lines
and they apper for a halfway into the file :/
And they are not just the lengths of the chunks?
they could be but i don't understand why couldn't they generate the file then find the final lenght...
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="
and odd thing while i was getting prepareing this i download the same file (forgeting i had another one some were on my harddrive which the example above this is) now the odd part is that it wasn't the same it had alot more gaps in the file and theres was no extra header and i also inculded the raw data (the server header)
so here it is, edit for some reason it would post the whole thing :/ mayt it was to long...