I think I might have it

by Zack (no login)

 
Previously I had asked what the PUT Request$ and GET Response$ part was for because it didn't look as though it was doing anything at all. Then I looked back over it and now I know that you are supposed to connect to the address to get the ip for the host and then to connect to the host.

But this is what I get when I run it:

HTTP/1.0 400 Bad Request
Server: dbws
Date: Sun, 29 May 2011 19:15:39 GMT
Content-Type: text/html
Content-Length: 1414
X-OSSProxy: OSSProxy 1.3.329.336 (Build 329.336 Win32 en-us)(Mar 3 2011 14:57:42)
Connection: close


<html>
<head><title>Dropbox - 4xx</title>
<link href="/static/css/main.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/static/images/favicon.ico"/>
</head>
<body style="background-color:#fff">
<br/><br/>
<div align="center">
<table><tr><td width="600px">
<center><img id="errorimage" src="/static/images/psychobox.png"/></center>
<div id="errorbox">
<h1>Error (4xx)</h1>We can't find the page you're looking for. Check out our <a href="https://www.dropbox.com/faq">FAQ</a> or <a href="http://forums.dropbox.com">forums</a> for help. Or maybe you should try heading <a href="https://www.dropbox.com/home">home</a>.
</div>
</td></tr></table>
</div>

<script type="text/javascript" src="/static/javascript/lib.js"></script>
<script>
message = {};
function read_cookie (name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) === 0) {
return c.substring(nameEQ.length, c.length);
}
}
return null;
}
Event.observe(document, 'dom:loaded', function () {
var locale = read_cookie('locale');
if (locale) {
var msg = message[locale];
if (msg) {
$('errorbox').update(msg);
}
}
});
</script>

</body>
</html>


This also explains why the client and the host could not exchange information =P

Any ideas on the script above? I don't speak HTML.

~Zack

Posted on May 29, 2011, 12:19 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
*It says the file does not exist, check the dropboxlink again...Unseen on May 29
 ButZack on May 29

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement