Permalink
Browse files

testing why it won't work... maybe because Chrome says "You cannot pr…

…oceed because the website operator has requested heightened security for this domain." fail.
  • Loading branch information...
1 parent bb4accf commit e5f3f93bd8ef4f817463ecf55cec36cb5f246882 @gengkev committed Apr 3, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 upload.js
View
@@ -1,4 +1,3 @@
-
var fileQueue = [], addQueue = [];
var totalTracks = 0, uploadedTracks = 0;
@@ -85,9 +84,11 @@ function updateProgress(current){
function protopost(path, proto, resp, callback){
var xhr = new XMLHttpRequest();
- xhr.open('POST', 'https://music-alpha.appspot.com/'+path);
+ // xhr.open('POST', 'https://music-alpha.appspot.com/'+path);
+ xhr.open("POST","https://android.clients.google.com/upsj");
xhr.responseType = 'arraybuffer'
- xhr.setRequestHeader('X-Cookie', 'SID='+SID);
+ //xhr.setRequestHeader('X-Cookie', 'SID='+SID);
+ xhr.setRequestHeader("Content-Type","application/x-google-protobuf");
//console.log(proto.SerializeToArray())
var array = new Uint8Array(proto.SerializeToArray());
xhr.send(array.buffer);

0 comments on commit e5f3f93

Please sign in to comment.