Cody

Problem 1. Times 2 - START HERE

Solution 514760

Submitted on 20 Oct 2014 by Aslak Grinsted
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(times2(1),2));

ans = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>HTTP Header Information - BrowserSpy.dk</title> <meta name="description" content="Which headers does your browser send? When communicating with the webserver, your browser sends a list of headers. These headers can contain information about which type of images are supported, wh..." /> <meta name="keywords" content="headers,http,server,remote,query,request,auth,accept,cookies,header,list" /> <link rel="icon" href="http://browserspy.dk/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="http://browserspy.dk/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" media="all" href="http://browserspy.dk/theme/reset.css" /> <link rel="stylesheet" type="text/css" media="all" href="http://browserspy.dk/theme/default.css" /> <script type="text/javascript" src="http://browserspy.dk/js/jquery.js"></script> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ $("a[rel=external]").click(function(){ pageTracker._trackPageview("/outgoing/"+ $(this).attr("href")); }); }); //]]> </script> <link rel="first" href="http://browserspy.dk/accept.php" title="Accepted Filetypes" /> <link rel="prev" href="http://browserspy.dk/gzip.php" title="GZip Support" /> <link rel="next" href="http://browserspy.dk/http.php" title="HTTP" /> <link rel="last" href="http://browserspy.dk/windowsmediaplayer.php" title="Windows Media Player" /> </head> <body id="browserspydk"> <div id="header"> <div class="inner"> <div id="logo"> <a href="http://browserspy.dk/" title="Back to BrowserSpy.dk frontpage"><img alt="BrowserSpy.dk logo" width="300" height="53" src="http://browserspy.dk/pics/logo.png" /></a> </div> <div id="banner-header"> <script type="text/javascript"> //<![CDATA[ var google_ad_client = "pub-3782597996216257"; var google_ad_slot = "7564469343"; var google_ad_width = 468; var google_ad_height = 60; //]]> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> </div> </div> <div class="clr"></div> </div> <div id="menu"> <ul id="menutop"> <li class="active"><a href="http://browserspy.dk/" title="Back to the frontpage of BrowserSpy.dk">Home</a></li><li><a href="http://browserspy.dk/about/" title="What is BrowserSpy.dk all about?">About</a></li><li><a href="http://browserspy.dk/blog/" title="The BrowserSpy.dk blog with news and relevant information">Blog</a></li><li><a href="http://browserspy.dk/contact/" title="How do I contact BrowserSpy.dk">Contact</a></li><li><a href="http://browserspy.dk/donate/" title="How do I donate money to the development of BrowserSpy.dk">Donate</a></li><li><a href="http://browserspy.dk/faq/" title="List of Frequently Asked Questions on BrowserSpy.dk">FAQ</a></li></ul> <div id="search"><form action="http://browserspy.dk/search/" id="cse-search-mini"><div><input type="hidden" name="cx" value="003484130720911686425:b-rcd__nbbw" /><input type="hidden" name="cof" value="FORID:11" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="30" title="Search the BrowserSpy.dk site" /><input type="submit" name="sa" class="sub" value="Search Site" title="Do the search!" /></div></form></div> </div> <div id="content"> <div id="left"> <div class="inner"> <div id="info"><p>BrowserSpy.dk shows you just how much information can be retrieved from your browser just by visiting a page.</p><p>Available tests are listed below.</p></div> <ul id="nav"> <li><a href="http://browserspy.dk/accept.php" title="What filetypes does your browser accept?">Accepted Filetypes</a></li><li><a href="http://browserspy.dk/activex.php" title="Does your browser support ActiveX?">ActiveX</a></li><li><a href="http://browserspy.dk/adobereader.php" title="Is Adobe Reader installed?">Adobe Reader</a></li><li><a href="http://browserspy.dk/ajax.php" title="Does your browser support XML requests and documents. XMLHttpRequest is used in Ajax based websites">Ajax Support</a></li><li><a href="http://browserspy.dk/bandwidth.php" title="What is your internet connection speed?">Bandwidth</a></li><li><a href="http://browserspy.dk/browser.php" title="What is the name and version of your browser?">Browser</a></li><li><a href="http://browserspy.dk/capabilities.php" title="What capabilities does your browser have?">Capabilities</a></li><li><a href="http://browserspy.dk/colors.php" title="What kind of system colors does your browser support?">Colors</a></li><li><a href="http://browserspy.dk/component.php" title="What Internet Explorer components can be and has been installed?">Components</a></li><li><a href="http://browserspy.dk/connections.php" title="How many connections does your browser supports?">Connections</a></li><li><a href="http://browserspy.dk/cookie.php" title="Does your browser support cookies and are they enabled?">Cookies</a></li><li><a href="http://browserspy.dk/cpu.php" title="What CUP does your system have?">CPU</a></li><li><a href="http://browserspy.dk/css.php" title="Is CSS supported and what CSS media types does your browser support?">CSS</a></li><li><a href="http://browserspy.dk/css-exploit.php" title="Can it be detected which websites you have visisted?">CSS Exploit</a></li><li><a href="http://browserspy.dk/cursors.php" title="What kind of cursors does your browser support?">Cursors</a></li><li><a href="http://browserspy.dk/date.php" title="What's the date and time on your system?">Date and Time</a></li><li><a href="http://browserspy.dk/directx.php" title="What DirectX components are available?">DirectX</a></li><li><a href="http://browserspy.dk/document.php" title="Get various information about the current document">Document</a></li><li><a href="http://browserspy.dk/donottrack.php" title="Does your browser send the Do Not Track header?" class="new">Do No Track</a></li><li><a href="http://browserspy.dk/dotnet.php" title="What .NET frameworks does your system have installed?">.NET Framework</a></li><li><a href="http://browserspy.dk/mailcheck.php" title="Can your email address be verified by spammers?">Email Verification</a></li><li><a href="http://browserspy.dk/flash.php" title="Is Adobe Flash installed?">Flash</a></li><li><a href="http://browserspy.dk/fonts-flash.php" title="What fonts does your system have installed? Detetced using Flash.">Fonts via Flash</a></li><li><a href="http://browserspy.dk/fonts-java.php" title="What fonts does your system have installed? Detetced using Java.">Fonts via Java</a></li><li><a href="http://browserspy.dk/gears.php" title="Is Gears aka Google Gears installed?">Gears</a></li><li><a href="http://browserspy.dk/gecko.php" title="Is your browser powered by the layout engine Gecko?">Gecko</a></li><li><a href="http://browserspy.dk/geolocation.php" title="Does your browser supports Geolocation?">Geolocation</a></li><li><a href="http://browserspy.dk/googlechrome.php" title="Are you running the Google Chrome browser? And if so what version?">Google Chrome</a></li><li><a href="http://browserspy.dk/googleapps.php" title="Check to see if you Google Apps domain is setup correctly. Checks if the MX record and the TXT record with the SPF is setup correctly.">Google Apps</a></li><li><a href="http://browserspy.dk/gzip.php" title="Does your browser support GZip compression?">GZip Support</a></li><li class="active"><a href="http://browserspy.dk/headers.php" title="What HTTP headers does your browser send?">HTTP Headers</a></li><li><a href="http://browserspy.dk/http.php" title="What HTTP headers does your browser send?">HTTP</a></li><li><a href="http://browserspy.dk/images.php" title="What types of images does your browser support?">Images</a></li><li><a href="http://browserspy.dk/ip.php" title="What IP address and host name have you got? Also shows you your location on a map.">IP Address</a></li><li><a href="http://browserspy.dk/java.php" title="Is Java installed?">Java</a></li><li><a href="http://browserspy.dk/javascript.php" title="Is JavaScript enabled and what versions are supported?">JavaScript</a></li><li><a href="http://browserspy.dk/language.php" title="What languages does your browser accept?">Languages</a></li><li><a href="http://browserspy.dk/math.php" title="What miscellaneous mathematical information are available?">Mathematical</a></li><li><a href="http://browserspy.dk/mathml.php" title="Does your browser support MathML language?">MathML Support</a></li><li><a href="http://browserspy.dk/mimetypes.php" title="What MIME types your browser supports?">MIME Types</a></li><li><a href="http://browserspy.dk/mobile.php" title="Are you using a mobile device and what's it's capabilities?">Mobile</a></li><li><a href="http://browserspy.dk/network.php" title="What headers your browser send when retriving this page?">Network</a></li><li><a href="http://browserspy.dk/object.php" title="What objects does your browser supports? Object like layers, images, forms, links, frames, anchors.">Objects</a></li><li><a href="http://browserspy.dk/showprop.php" title="Show an DOM object with all it's properties and values">Object Browser</a></li><li><a href="http://browserspy.dk/offline.php" title="Can your browser go offline? And can it store data?">Online / Offline</a></li><li><a href="http://browserspy.dk/opendns.php" title="Are you using th...

2   Pass
assert(isequal(times2(11),22));

ans = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>HTTP Header Information - BrowserSpy.dk</title> <meta name="description" content="Which headers does your browser send? When communicating with the webserver, your browser sends a list of headers. These headers can contain information about which type of images are supported, wh..." /> <meta name="keywords" content="headers,http,server,remote,query,request,auth,accept,cookies,header,list" /> <link rel="icon" href="http://browserspy.dk/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="http://browserspy.dk/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" media="all" href="http://browserspy.dk/theme/reset.css" /> <link rel="stylesheet" type="text/css" media="all" href="http://browserspy.dk/theme/default.css" /> <script type="text/javascript" src="http://browserspy.dk/js/jquery.js"></script> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ $("a[rel=external]").click(function(){ pageTracker._trackPageview("/outgoing/"+ $(this).attr("href")); }); }); //]]> </script> <link rel="first" href="http://browserspy.dk/accept.php" title="Accepted Filetypes" /> <link rel="prev" href="http://browserspy.dk/gzip.php" title="GZip Support" /> <link rel="next" href="http://browserspy.dk/http.php" title="HTTP" /> <link rel="last" href="http://browserspy.dk/windowsmediaplayer.php" title="Windows Media Player" /> </head> <body id="browserspydk"> <div id="header"> <div class="inner"> <div id="logo"> <a href="http://browserspy.dk/" title="Back to BrowserSpy.dk frontpage"><img alt="BrowserSpy.dk logo" width="300" height="53" src="http://browserspy.dk/pics/logo.png" /></a> </div> <div id="banner-header"> <script type="text/javascript"> //<![CDATA[ var google_ad_client = "pub-3782597996216257"; var google_ad_slot = "7564469343"; var google_ad_width = 468; var google_ad_height = 60; //]]> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> </div> </div> <div class="clr"></div> </div> <div id="menu"> <ul id="menutop"> <li class="active"><a href="http://browserspy.dk/" title="Back to the frontpage of BrowserSpy.dk">Home</a></li><li><a href="http://browserspy.dk/about/" title="What is BrowserSpy.dk all about?">About</a></li><li><a href="http://browserspy.dk/blog/" title="The BrowserSpy.dk blog with news and relevant information">Blog</a></li><li><a href="http://browserspy.dk/contact/" title="How do I contact BrowserSpy.dk">Contact</a></li><li><a href="http://browserspy.dk/donate/" title="How do I donate money to the development of BrowserSpy.dk">Donate</a></li><li><a href="http://browserspy.dk/faq/" title="List of Frequently Asked Questions on BrowserSpy.dk">FAQ</a></li></ul> <div id="search"><form action="http://browserspy.dk/search/" id="cse-search-mini"><div><input type="hidden" name="cx" value="003484130720911686425:b-rcd__nbbw" /><input type="hidden" name="cof" value="FORID:11" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="30" title="Search the BrowserSpy.dk site" /><input type="submit" name="sa" class="sub" value="Search Site" title="Do the search!" /></div></form></div> </div> <div id="content"> <div id="left"> <div class="inner"> <div id="info"><p>BrowserSpy.dk shows you just how much information can be retrieved from your browser just by visiting a page.</p><p>Available tests are listed below.</p></div> <ul id="nav"> <li><a href="http://browserspy.dk/accept.php" title="What filetypes does your browser accept?">Accepted Filetypes</a></li><li><a href="http://browserspy.dk/activex.php" title="Does your browser support ActiveX?">ActiveX</a></li><li><a href="http://browserspy.dk/adobereader.php" title="Is Adobe Reader installed?">Adobe Reader</a></li><li><a href="http://browserspy.dk/ajax.php" title="Does your browser support XML requests and documents. XMLHttpRequest is used in Ajax based websites">Ajax Support</a></li><li><a href="http://browserspy.dk/bandwidth.php" title="What is your internet connection speed?">Bandwidth</a></li><li><a href="http://browserspy.dk/browser.php" title="What is the name and version of your browser?">Browser</a></li><li><a href="http://browserspy.dk/capabilities.php" title="What capabilities does your browser have?">Capabilities</a></li><li><a href="http://browserspy.dk/colors.php" title="What kind of system colors does your browser support?">Colors</a></li><li><a href="http://browserspy.dk/component.php" title="What Internet Explorer components can be and has been installed?">Components</a></li><li><a href="http://browserspy.dk/connections.php" title="How many connections does your browser supports?">Connections</a></li><li><a href="http://browserspy.dk/cookie.php" title="Does your browser support cookies and are they enabled?">Cookies</a></li><li><a href="http://browserspy.dk/cpu.php" title="What CUP does your system have?">CPU</a></li><li><a href="http://browserspy.dk/css.php" title="Is CSS supported and what CSS media types does your browser support?">CSS</a></li><li><a href="http://browserspy.dk/css-exploit.php" title="Can it be detected which websites you have visisted?">CSS Exploit</a></li><li><a href="http://browserspy.dk/cursors.php" title="What kind of cursors does your browser support?">Cursors</a></li><li><a href="http://browserspy.dk/date.php" title="What's the date and time on your system?">Date and Time</a></li><li><a href="http://browserspy.dk/directx.php" title="What DirectX components are available?">DirectX</a></li><li><a href="http://browserspy.dk/document.php" title="Get various information about the current document">Document</a></li><li><a href="http://browserspy.dk/donottrack.php" title="Does your browser send the Do Not Track header?" class="new">Do No Track</a></li><li><a href="http://browserspy.dk/dotnet.php" title="What .NET frameworks does your system have installed?">.NET Framework</a></li><li><a href="http://browserspy.dk/mailcheck.php" title="Can your email address be verified by spammers?">Email Verification</a></li><li><a href="http://browserspy.dk/flash.php" title="Is Adobe Flash installed?">Flash</a></li><li><a href="http://browserspy.dk/fonts-flash.php" title="What fonts does your system have installed? Detetced using Flash.">Fonts via Flash</a></li><li><a href="http://browserspy.dk/fonts-java.php" title="What fonts does your system have installed? Detetced using Java.">Fonts via Java</a></li><li><a href="http://browserspy.dk/gears.php" title="Is Gears aka Google Gears installed?">Gears</a></li><li><a href="http://browserspy.dk/gecko.php" title="Is your browser powered by the layout engine Gecko?">Gecko</a></li><li><a href="http://browserspy.dk/geolocation.php" title="Does your browser supports Geolocation?">Geolocation</a></li><li><a href="http://browserspy.dk/googlechrome.php" title="Are you running the Google Chrome browser? And if so what version?">Google Chrome</a></li><li><a href="http://browserspy.dk/googleapps.php" title="Check to see if you Google Apps domain is setup correctly. Checks if the MX record and the TXT record with the SPF is setup correctly.">Google Apps</a></li><li><a href="http://browserspy.dk/gzip.php" title="Does your browser support GZip compression?">GZip Support</a></li><li class="active"><a href="http://browserspy.dk/headers.php" title="What HTTP headers does your browser send?">HTTP Headers</a></li><li><a href="http://browserspy.dk/http.php" title="What HTTP headers does your browser send?">HTTP</a></li><li><a href="http://browserspy.dk/images.php" title="What types of images does your browser support?">Images</a></li><li><a href="http://browserspy.dk/ip.php" title="What IP address and host name have you got? Also shows you your location on a map.">IP Address</a></li><li><a href="http://browserspy.dk/java.php" title="Is Java installed?">Java</a></li><li><a href="http://browserspy.dk/javascript.php" title="Is JavaScript enabled and what versions are supported?">JavaScript</a></li><li><a href="http://browserspy.dk/language.php" title="What languages does your browser accept?">Languages</a></li><li><a href="http://browserspy.dk/math.php" title="What miscellaneous mathematical information are available?">Mathematical</a></li><li><a href="http://browserspy.dk/mathml.php" title="Does your browser support MathML language?">MathML Support</a></li><li><a href="http://browserspy.dk/mimetypes.php" title="What MIME types your browser supports?">MIME Types</a></li><li><a href="http://browserspy.dk/mobile.php" title="Are you using a mobile device and what's it's capabilities?">Mobile</a></li><li><a href="http://browserspy.dk/network.php" title="What headers your browser send when retriving this page?">Network</a></li><li><a href="http://browserspy.dk/object.php" title="What objects does your browser supports? Object like layers, images, forms, links, frames, anchors.">Objects</a></li><li><a href="http://browserspy.dk/showprop.php" title="Show an DOM object with all it's properties and values">Object Browser</a></li><li><a href="http://browserspy.dk/offline.php" title="Can your browser go offline? And can it store data?">Online / Offline</a></li><li><a href="http://browserspy.dk/opendns.php" title="Are you using th...

3   Pass
assert(isequal(times2(-3),-6));

ans = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>HTTP Header Information - BrowserSpy.dk</title> <meta name="description" content="Which headers does your browser send? When communicating with the webserver, your browser sends a list of headers. These headers can contain information about which type of images are supported, wh..." /> <meta name="keywords" content="headers,http,server,remote,query,request,auth,accept,cookies,header,list" /> <link rel="icon" href="http://browserspy.dk/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="http://browserspy.dk/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" media="all" href="http://browserspy.dk/theme/reset.css" /> <link rel="stylesheet" type="text/css" media="all" href="http://browserspy.dk/theme/default.css" /> <script type="text/javascript" src="http://browserspy.dk/js/jquery.js"></script> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ $("a[rel=external]").click(function(){ pageTracker._trackPageview("/outgoing/"+ $(this).attr("href")); }); }); //]]> </script> <link rel="first" href="http://browserspy.dk/accept.php" title="Accepted Filetypes" /> <link rel="prev" href="http://browserspy.dk/gzip.php" title="GZip Support" /> <link rel="next" href="http://browserspy.dk/http.php" title="HTTP" /> <link rel="last" href="http://browserspy.dk/windowsmediaplayer.php" title="Windows Media Player" /> </head> <body id="browserspydk"> <div id="header"> <div class="inner"> <div id="logo"> <a href="http://browserspy.dk/" title="Back to BrowserSpy.dk frontpage"><img alt="BrowserSpy.dk logo" width="300" height="53" src="http://browserspy.dk/pics/logo.png" /></a> </div> <div id="banner-header"> <script type="text/javascript"> //<![CDATA[ var google_ad_client = "pub-3782597996216257"; var google_ad_slot = "7564469343"; var google_ad_width = 468; var google_ad_height = 60; //]]> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> </div> </div> <div class="clr"></div> </div> <div id="menu"> <ul id="menutop"> <li class="active"><a href="http://browserspy.dk/" title="Back to the frontpage of BrowserSpy.dk">Home</a></li><li><a href="http://browserspy.dk/about/" title="What is BrowserSpy.dk all about?">About</a></li><li><a href="http://browserspy.dk/blog/" title="The BrowserSpy.dk blog with news and relevant information">Blog</a></li><li><a href="http://browserspy.dk/contact/" title="How do I contact BrowserSpy.dk">Contact</a></li><li><a href="http://browserspy.dk/donate/" title="How do I donate money to the development of BrowserSpy.dk">Donate</a></li><li><a href="http://browserspy.dk/faq/" title="List of Frequently Asked Questions on BrowserSpy.dk">FAQ</a></li></ul> <div id="search"><form action="http://browserspy.dk/search/" id="cse-search-mini"><div><input type="hidden" name="cx" value="003484130720911686425:b-rcd__nbbw" /><input type="hidden" name="cof" value="FORID:11" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="30" title="Search the BrowserSpy.dk site" /><input type="submit" name="sa" class="sub" value="Search Site" title="Do the search!" /></div></form></div> </div> <div id="content"> <div id="left"> <div class="inner"> <div id="info"><p>BrowserSpy.dk shows you just how much information can be retrieved from your browser just by visiting a page.</p><p>Available tests are listed below.</p></div> <ul id="nav"> <li><a href="http://browserspy.dk/accept.php" title="What filetypes does your browser accept?">Accepted Filetypes</a></li><li><a href="http://browserspy.dk/activex.php" title="Does your browser support ActiveX?">ActiveX</a></li><li><a href="http://browserspy.dk/adobereader.php" title="Is Adobe Reader installed?">Adobe Reader</a></li><li><a href="http://browserspy.dk/ajax.php" title="Does your browser support XML requests and documents. XMLHttpRequest is used in Ajax based websites">Ajax Support</a></li><li><a href="http://browserspy.dk/bandwidth.php" title="What is your internet connection speed?">Bandwidth</a></li><li><a href="http://browserspy.dk/browser.php" title="What is the name and version of your browser?">Browser</a></li><li><a href="http://browserspy.dk/capabilities.php" title="What capabilities does your browser have?">Capabilities</a></li><li><a href="http://browserspy.dk/colors.php" title="What kind of system colors does your browser support?">Colors</a></li><li><a href="http://browserspy.dk/component.php" title="What Internet Explorer components can be and has been installed?">Components</a></li><li><a href="http://browserspy.dk/connections.php" title="How many connections does your browser supports?">Connections</a></li><li><a href="http://browserspy.dk/cookie.php" title="Does your browser support cookies and are they enabled?">Cookies</a></li><li><a href="http://browserspy.dk/cpu.php" title="What CUP does your system have?">CPU</a></li><li><a href="http://browserspy.dk/css.php" title="Is CSS supported and what CSS media types does your browser support?">CSS</a></li><li><a href="http://browserspy.dk/css-exploit.php" title="Can it be detected which websites you have visisted?">CSS Exploit</a></li><li><a href="http://browserspy.dk/cursors.php" title="What kind of cursors does your browser support?">Cursors</a></li><li><a href="http://browserspy.dk/date.php" title="What's the date and time on your system?">Date and Time</a></li><li><a href="http://browserspy.dk/directx.php" title="What DirectX components are available?">DirectX</a></li><li><a href="http://browserspy.dk/document.php" title="Get various information about the current document">Document</a></li><li><a href="http://browserspy.dk/donottrack.php" title="Does your browser send the Do Not Track header?" class="new">Do No Track</a></li><li><a href="http://browserspy.dk/dotnet.php" title="What .NET frameworks does your system have installed?">.NET Framework</a></li><li><a href="http://browserspy.dk/mailcheck.php" title="Can your email address be verified by spammers?">Email Verification</a></li><li><a href="http://browserspy.dk/flash.php" title="Is Adobe Flash installed?">Flash</a></li><li><a href="http://browserspy.dk/fonts-flash.php" title="What fonts does your system have installed? Detetced using Flash.">Fonts via Flash</a></li><li><a href="http://browserspy.dk/fonts-java.php" title="What fonts does your system have installed? Detetced using Java.">Fonts via Java</a></li><li><a href="http://browserspy.dk/gears.php" title="Is Gears aka Google Gears installed?">Gears</a></li><li><a href="http://browserspy.dk/gecko.php" title="Is your browser powered by the layout engine Gecko?">Gecko</a></li><li><a href="http://browserspy.dk/geolocation.php" title="Does your browser supports Geolocation?">Geolocation</a></li><li><a href="http://browserspy.dk/googlechrome.php" title="Are you running the Google Chrome browser? And if so what version?">Google Chrome</a></li><li><a href="http://browserspy.dk/googleapps.php" title="Check to see if you Google Apps domain is setup correctly. Checks if the MX record and the TXT record with the SPF is setup correctly.">Google Apps</a></li><li><a href="http://browserspy.dk/gzip.php" title="Does your browser support GZip compression?">GZip Support</a></li><li class="active"><a href="http://browserspy.dk/headers.php" title="What HTTP headers does your browser send?">HTTP Headers</a></li><li><a href="http://browserspy.dk/http.php" title="What HTTP headers does your browser send?">HTTP</a></li><li><a href="http://browserspy.dk/images.php" title="What types of images does your browser support?">Images</a></li><li><a href="http://browserspy.dk/ip.php" title="What IP address and host name have you got? Also shows you your location on a map.">IP Address</a></li><li><a href="http://browserspy.dk/java.php" title="Is Java installed?">Java</a></li><li><a href="http://browserspy.dk/javascript.php" title="Is JavaScript enabled and what versions are supported?">JavaScript</a></li><li><a href="http://browserspy.dk/language.php" title="What languages does your browser accept?">Languages</a></li><li><a href="http://browserspy.dk/math.php" title="What miscellaneous mathematical information are available?">Mathematical</a></li><li><a href="http://browserspy.dk/mathml.php" title="Does your browser support MathML language?">MathML Support</a></li><li><a href="http://browserspy.dk/mimetypes.php" title="What MIME types your browser supports?">MIME Types</a></li><li><a href="http://browserspy.dk/mobile.php" title="Are you using a mobile device and what's it's capabilities?">Mobile</a></li><li><a href="http://browserspy.dk/network.php" title="What headers your browser send when retriving this page?">Network</a></li><li><a href="http://browserspy.dk/object.php" title="What objects does your browser supports? Object like layers, images, forms, links, frames, anchors.">Objects</a></li><li><a href="http://browserspy.dk/showprop.php" title="Show an DOM object with all it's properties and values">Object Browser</a></li><li><a href="http://browserspy.dk/offline.php" title="Can your browser go offline? And can it store data?">Online / Offline</a></li><li><a href="http://browserspy.dk/opendns.php" title="Are you using th...

4   Pass
assert(isequal(times2(29),58));

ans = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>HTTP Header Information - BrowserSpy.dk</title> <meta name="description" content="Which headers does your browser send? When communicating with the webserver, your browser sends a list of headers. These headers can contain information about which type of images are supported, wh..." /> <meta name="keywords" content="headers,http,server,remote,query,request,auth,accept,cookies,header,list" /> <link rel="icon" href="http://browserspy.dk/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="http://browserspy.dk/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" media="all" href="http://browserspy.dk/theme/reset.css" /> <link rel="stylesheet" type="text/css" media="all" href="http://browserspy.dk/theme/default.css" /> <script type="text/javascript" src="http://browserspy.dk/js/jquery.js"></script> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script> <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ $("a[rel=external]").click(function(){ pageTracker._trackPageview("/outgoing/"+ $(this).attr("href")); }); }); //]]> </script> <link rel="first" href="http://browserspy.dk/accept.php" title="Accepted Filetypes" /> <link rel="prev" href="http://browserspy.dk/gzip.php" title="GZip Support" /> <link rel="next" href="http://browserspy.dk/http.php" title="HTTP" /> <link rel="last" href="http://browserspy.dk/windowsmediaplayer.php" title="Windows Media Player" /> </head> <body id="browserspydk"> <div id="header"> <div class="inner"> <div id="logo"> <a href="http://browserspy.dk/" title="Back to BrowserSpy.dk frontpage"><img alt="BrowserSpy.dk logo" width="300" height="53" src="http://browserspy.dk/pics/logo.png" /></a> </div> <div id="banner-header"> <script type="text/javascript"> //<![CDATA[ var google_ad_client = "pub-3782597996216257"; var google_ad_slot = "7564469343"; var google_ad_width = 468; var google_ad_height = 60; //]]> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> </div> </div> <div class="clr"></div> </div> <div id="menu"> <ul id="menutop"> <li class="active"><a href="http://browserspy.dk/" title="Back to the frontpage of BrowserSpy.dk">Home</a></li><li><a href="http://browserspy.dk/about/" title="What is BrowserSpy.dk all about?">About</a></li><li><a href="http://browserspy.dk/blog/" title="The BrowserSpy.dk blog with news and relevant information">Blog</a></li><li><a href="http://browserspy.dk/contact/" title="How do I contact BrowserSpy.dk">Contact</a></li><li><a href="http://browserspy.dk/donate/" title="How do I donate money to the development of BrowserSpy.dk">Donate</a></li><li><a href="http://browserspy.dk/faq/" title="List of Frequently Asked Questions on BrowserSpy.dk">FAQ</a></li></ul> <div id="search"><form action="http://browserspy.dk/search/" id="cse-search-mini"><div><input type="hidden" name="cx" value="003484130720911686425:b-rcd__nbbw" /><input type="hidden" name="cof" value="FORID:11" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="30" title="Search the BrowserSpy.dk site" /><input type="submit" name="sa" class="sub" value="Search Site" title="Do the search!" /></div></form></div> </div> <div id="content"> <div id="left"> <div class="inner"> <div id="info"><p>BrowserSpy.dk shows you just how much information can be retrieved from your browser just by visiting a page.</p><p>Available tests are listed below.</p></div> <ul id="nav"> <li><a href="http://browserspy.dk/accept.php" title="What filetypes does your browser accept?">Accepted Filetypes</a></li><li><a href="http://browserspy.dk/activex.php" title="Does your browser support ActiveX?">ActiveX</a></li><li><a href="http://browserspy.dk/adobereader.php" title="Is Adobe Reader installed?">Adobe Reader</a></li><li><a href="http://browserspy.dk/ajax.php" title="Does your browser support XML requests and documents. XMLHttpRequest is used in Ajax based websites">Ajax Support</a></li><li><a href="http://browserspy.dk/bandwidth.php" title="What is your internet connection speed?">Bandwidth</a></li><li><a href="http://browserspy.dk/browser.php" title="What is the name and version of your browser?">Browser</a></li><li><a href="http://browserspy.dk/capabilities.php" title="What capabilities does your browser have?">Capabilities</a></li><li><a href="http://browserspy.dk/colors.php" title="What kind of system colors does your browser support?">Colors</a></li><li><a href="http://browserspy.dk/component.php" title="What Internet Explorer components can be and has been installed?">Components</a></li><li><a href="http://browserspy.dk/connections.php" title="How many connections does your browser supports?">Connections</a></li><li><a href="http://browserspy.dk/cookie.php" title="Does your browser support cookies and are they enabled?">Cookies</a></li><li><a href="http://browserspy.dk/cpu.php" title="What CUP does your system have?">CPU</a></li><li><a href="http://browserspy.dk/css.php" title="Is CSS supported and what CSS media types does your browser support?">CSS</a></li><li><a href="http://browserspy.dk/css-exploit.php" title="Can it be detected which websites you have visisted?">CSS Exploit</a></li><li><a href="http://browserspy.dk/cursors.php" title="What kind of cursors does your browser support?">Cursors</a></li><li><a href="http://browserspy.dk/date.php" title="What's the date and time on your system?">Date and Time</a></li><li><a href="http://browserspy.dk/directx.php" title="What DirectX components are available?">DirectX</a></li><li><a href="http://browserspy.dk/document.php" title="Get various information about the current document">Document</a></li><li><a href="http://browserspy.dk/donottrack.php" title="Does your browser send the Do Not Track header?" class="new">Do No Track</a></li><li><a href="http://browserspy.dk/dotnet.php" title="What .NET frameworks does your system have installed?">.NET Framework</a></li><li><a href="http://browserspy.dk/mailcheck.php" title="Can your email address be verified by spammers?">Email Verification</a></li><li><a href="http://browserspy.dk/flash.php" title="Is Adobe Flash installed?">Flash</a></li><li><a href="http://browserspy.dk/fonts-flash.php" title="What fonts does your system have installed? Detetced using Flash.">Fonts via Flash</a></li><li><a href="http://browserspy.dk/fonts-java.php" title="What fonts does your system have installed? Detetced using Java.">Fonts via Java</a></li><li><a href="http://browserspy.dk/gears.php" title="Is Gears aka Google Gears installed?">Gears</a></li><li><a href="http://browserspy.dk/gecko.php" title="Is your browser powered by the layout engine Gecko?">Gecko</a></li><li><a href="http://browserspy.dk/geolocation.php" title="Does your browser supports Geolocation?">Geolocation</a></li><li><a href="http://browserspy.dk/googlechrome.php" title="Are you running the Google Chrome browser? And if so what version?">Google Chrome</a></li><li><a href="http://browserspy.dk/googleapps.php" title="Check to see if you Google Apps domain is setup correctly. Checks if the MX record and the TXT record with the SPF is setup correctly.">Google Apps</a></li><li><a href="http://browserspy.dk/gzip.php" title="Does your browser support GZip compression?">GZip Support</a></li><li class="active"><a href="http://browserspy.dk/headers.php" title="What HTTP headers does your browser send?">HTTP Headers</a></li><li><a href="http://browserspy.dk/http.php" title="What HTTP headers does your browser send?">HTTP</a></li><li><a href="http://browserspy.dk/images.php" title="What types of images does your browser support?">Images</a></li><li><a href="http://browserspy.dk/ip.php" title="What IP address and host name have you got? Also shows you your location on a map.">IP Address</a></li><li><a href="http://browserspy.dk/java.php" title="Is Java installed?">Java</a></li><li><a href="http://browserspy.dk/javascript.php" title="Is JavaScript enabled and what versions are supported?">JavaScript</a></li><li><a href="http://browserspy.dk/language.php" title="What languages does your browser accept?">Languages</a></li><li><a href="http://browserspy.dk/math.php" title="What miscellaneous mathematical information are available?">Mathematical</a></li><li><a href="http://browserspy.dk/mathml.php" title="Does your browser support MathML language?">MathML Support</a></li><li><a href="http://browserspy.dk/mimetypes.php" title="What MIME types your browser supports?">MIME Types</a></li><li><a href="http://browserspy.dk/mobile.php" title="Are you using a mobile device and what's it's capabilities?">Mobile</a></li><li><a href="http://browserspy.dk/network.php" title="What headers your browser send when retriving this page?">Network</a></li><li><a href="http://browserspy.dk/object.php" title="What objects does your browser supports? Object like layers, images, forms, links, frames, anchors.">Objects</a></li><li><a href="http://browserspy.dk/showprop.php" title="Show an DOM object with all it's properties and values">Object Browser</a></li><li><a href="http://browserspy.dk/offline.php" title="Can your browser go offline? And can it store data?">Online / Offline</a></li><li><a href="http://browserspy.dk/opendns.php" title="Are you using th...

Suggested Problems

More from this Author95

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!