HTML - Http Header For Variable Length File
If you want to download a variable length text file, what would be the correct http headers to use?
Similar TutorialsWe have an embedded device which server up a webpage. All parts of it works fine with a PC. We are now connecting it to a PDA running Windows CE 4.2 .NET. The webpages display fine in internet explorer. When we download a file the download dialog appears twice. The first download dialog downloads the file. The 2nd one fails and then further downloads will not run. We suspect the problem lies in http headers. The headers we are using at the moment a HTTP/1.1 200 OK\r\n Date: Fri, 31 Dec 1999 23:59:59 GMT\r\n Server: myserver\r\n Connection: close\r\n Content-Type: text/plain\r\n Content-Disposition: attachment; filename=abc.txt\r\n\r\n Help please. Cheers, Peter Could you have multiple http-equiv meta elements in one index.htm file, such as: Code: HTML Code: See what I am trying to do here is keep the charset the same, but also have search engines expire the current cache for this site as I have made many changes to my website. It is currently still under construction and I was wondering if this is the best way to "re-cache" the new content. Specifically, the title, description and keywords meta elements. Any assistance with this would be greatly appreciated. Hi there, I am currently building a website in dreamweaver. It's going slow but so far I have overcome ever problem with the help of people like you! The problem I'm at at the moment is pretty tricky. If you visit. http://aquariusspa.co.uk/flw%5Fver2/flw_ver2.html This site I built with photoshop and then exported as html. Now i'm adding content and the nav bar (which isn't quite working right!). So what i'm looking to do is have the main box (one with welcome in it) change height depending on what i enter in to it. Every page has different amount of text. Now I could just build every page in photoshop for the desired page height but surely there must be a way of stretching what i've got with out wreaking the graphics. Thanks in advance. S hi I need to know how you would create a header that simply just displays a picture . Can someone please post the code on here for that ? Is it possible to include a header and footer file using HTML? I have my file as a .html and need to be able to include the HTML for the header and footer. Anyone know how I can do this? Is it possible to include a header and footer file using HTML? I have my file as a .html and need to be able to include the HTML for the header and footer. Anyone know how I can do this? Ok, so basically, I have a website with a lot of pages. I have made a top menu bar, which goes on every page, and a copywrite notice for the bottom. I was wondering if its possible to maybe put those in some kind of external file, which will make them appear on every page, like a CSS file, so I don't have to paste that onto every page. The reason I asked, is because sometimes the menu is gonna change and I don't want to have to edit EVERY page of my site just for that. And if it does work, could someone tell me how to do it? I tried <header> </header> and <footer></footer> in a CSS but they didn't appear on my page, and yes, the page calls the CSS file correctly, because the styles still load up. Any help would be GREATLY appreciated!!! Just out of curiosity, if a server returns a page with code 3xx and a "Location: url_1" header, but also includes a <meta http-equiv="refresh" content="0;url=url_2"/> tag, then would the browser be expected to redirect to url_1 or url_2? Hi All, Is there any maximum length for tooltip for html tags? How can I determine the possible max length? Rahul.... This is one of these things where you probably should just go to bed and forget all the confusion. My question: How the heck can you specify the length of the option field for a drop town list? I am sure ther is an embarrasingly simple answer. Thanks a lot and good night! Hi. I have a very discrete light blue color in the background from a previous template. It ends about halfway through the bottom area and I'd like to extend it throughout the entire page without moving/overwriting anything else please. www.movehumanityforward.com Thank you Please take a look at this page: http://lifeengineering.org/ Try out the menu links and see what I'm talking about. The "short" pages shift horizontally. In other words, if the div block with the content doesn't reach the bottom of the browser window, then it's rendered in a different horizontal position. So, changing the pages through the menu makes the pages appear to "jump". NOTE: You'll need a reasonably big resolution to see what I'm talking about (e.g. 1152 x 864+). Any suggestions on how to correct this? Is there a way to pad blank spaces at the end of my content in the div block to ensure that it always reaches the end of the browser window? Or something similar? ------ Issue #2: My background isn't ideal. I like the rainbow, but I'd like to change it. If I wanted to make the rainbow arc appear stationary as I scroll the page (i.e. to have the upper left arc of the rainbow always appear on the upper left corn of the screen), how would I do it? Any other suggestions, artistically, with respect to the page background? Thank you kindly! I have a menu made up of one div and within that div are more divs to make up the separate menu items. I am trying to add a background colour to the holding div but it's not having any effect. When I investigate the div order in web developer it shows that it's not extending to the height of the menu divs inside it. Please help. It's menu_nav I am trying to put a background on. HTML: HTML Code: <div id="menu_nav"> <div class="mainMenu"> <a href="#">HOME</a> </div> <div class="mainMenu"> <a href="services.html" onmouseover="mopen('servicesSub')" onmouseout="mclosetime()">SERVICES</a> <span id="servicesSub" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="#">Website Production</a> <a href="#">Hosting & Domains</a> <a href="services.html#design">Design & Branding</a> <a href="video.html">Video Production</a> <a href="#">Interactive Media</a> </span> </div> <div class="mainMenu"> <a href="portfolio.html" onmouseover="mopen('portSub')" onmouseout="mclosetime()">PORTFOLIO</a> <span id="portSub" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="portfolio.html#websites">Websites</a> <a href="portfolio.html#programs">Programs</a> <a href="#">Video</a> <a href="#">Animation</a> <a href="#">Design</a> <a href="#">Web solutions</a> </span> </div> <div class="mainMenu"> <a href="info.html" onmouseover="mopen('aboutSub')" onmouseout="mclosetime()">INFO</a> <span id="aboutSub" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="prices.html">Prices</a> <a href="sitemap.html">Sitemap</a> <a href="aboutUs.html">About Us</a> <a href="contact.html">Contact</a> </span> </div> </div> CSS: Code: * MAIN MENU NAVIGATION*/ #menu_nav a, #servicesSubMenu a { text-decoration:none; color:black; } #menu_nav { width:950px; background-color:#E6E6E6; height:auto; margin-top:0px; font-size:11pt; margin:auto; } .mainMenu { float:left; float: left; margin: 0px 75px 0px 75px; background-color:#E6E6E6; line-height:30px; } .mainMenu a { line-height:20px; display: block; font-size:11pt; text-align: left; text-decoration: none; background-color:#E6E6E6; } #menu_nav a:hover, #footer a:hover, #left_menu_column a:hover { color:RGB(5,127,204); } /*DROPDOWN MENU*/ #servicesSub, #portSub, #aboutSub { visibility:hidden; position:absolute } #servicesSub a, #portSub a, #aboutSub a { width:150px; border-bottom:1px solid white; color:grey; padding-left:4px; padding-right:4px; padding:5px; } hello, new member here so hiya! I have a site and I have a div containing all the page. At first I gave it a height just so I could put CSS in and see what it's like. After I have taken out the height though, the div shrinks to like 1 pixel. Why isn't it as long as it's containing divs - including left column, main section, footer? Many thanks hi, I have this:<form > <input id="Email" maxlength="40" name="Email" size="40" type="text" value=""><br /> <input id="pwd" maxlength="40" name="pwd" size="40" type="password" value=""> <label for="Submit"> </label> <input id="Submit" name="Submit" type="submit" value="Submit"> </form> In Safari and Firefox, the two boxes look the same length, you can see from diff_ff.jpg, but in IE, it looks different(please see diff.jpg), if I change "password" to "text" they will look the same in length, any solution to this? Thanks, A.C. How do I figure out the lenght of the page (content, not browser window) so that I can make all of my regions line up at the bottom? I noticed that % in the height attribute is related to the window not content. I have also tried auto, but that is different for different content. My page has an outside region, a left nav bar and a content region, and I don't know how to make the bottom line up without tables. Sorry if this is confusing. Thanks in advance. The adage of 'give a man a fish and he'll be fed; give a man Dreamweaver and he thinks he's a designer' is alive and well with these glitches. http://www.zenarchy.co.uk/test11.htm is a design draft and there are two problems. The first is that the central span that houses 'High quality call recording software' doesn't match up to the end and sit flush. It's almost there in firefox but is miles off in IE. I'd like it to work in both. <td width="100%" height="22" bgcolor="#91a2a0"> <p align="center"><b><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>High quality call recording software</strong></font></b></td> is the code I've identified as relevant, but opening the hood and checking the source might be wiser! 2. How do I extend the columns on either side to sit flush at the bottom against the graphite baseline? Your thoughts please (aside from get a pro to do it...) Cheers! Ok I know this isn't really a HTML issue, but to avoid complex clientside pixel-counting of fonts I've thought of something far more simple. I need to limit the length of a string to stop it wrapping. The first step is to limit the string's length in characters, using the following php script: PHP Code: function trim_string($string) { $trim_string = '...'; $chars = 55; $chars_adjusted = $chars - strlen($trim_string); if (strlen($string) > $chars) { $string = substr($string,0,$chars_adjusted); $string .= $trim_string; } return $string; } Fine, no problem. Now however the strings are not all of equal length because of differences in length of each character (see the warmdebate.com homepage for my debacle). I thought that a relatively simple solution would be to simple use some sort of CSS or HTML wizardry to stretch the trimmed string to a fixed length (like full alignment, only for a non-wrapped string). Since this doesn't involve pixel counting or anything like that I figure it should be doable in CSS or HTML. Also, if there are any standard solutions to this other than what I'm proposing please let me know! hi My code is- <HTML> <HEAD></HEAD> <BODY> <TABLE> <TR><TD> <SELECT NAME="Date"> <OPTION>1</OPTION> <OPTION>2</OPTION> : : <OPTION>30</OPTION> <OPTION>31</OPTION> </TD></TR> </TABLE> </BODY> </HTML> it will show the numbers from 1 to 31 in the drop down with long scrollbar. My problem is - I want show only 10 numbers.User need to scroll and select other numbers. Is it possible? Hi, I'm writing a website using tables (0 border and space etc.) so that things don't move around on different computers and browsers. However, I've run into a bit of trouble with a particular cell. The one in questions is my navigation menu. I have it written in php as a separate page and used the include tag to load it onto the index. It consists of a table of height 600 and a single column with a couple of cells. Now, from my reasoning, the the 600 table height of the nagivation menu/page should easily fit into the 600 cell height of it's space on the index. This is reflected when I view the page using IE - all of the border/frame images that I had made went together perfectly. However, when I view the page with FireFox, the navigation menu seems to be too short in that the first navigation cell does not immediately appear after the top border line. There is a blank white space. Also, it seems to have stretched that particular row because the right most border on the index, which is not connected to anything else and is it's own image, is centerized so that there is white space left (indicating the cell was incremented height wise). Does anyone know if this is a fixable discrepancy? A link to the test page is: VA Test Page I can provide a link to the menu page if it's needed... Anxiously awaiting a reply whether it's related or not |