|
|
|
@ -592,6 +592,7 @@ You should have received a copy of the GNU General Public License along with thi
|
|
|
|
|
let iQ = url.indexOf('#',12);
|
|
|
|
|
let data;
|
|
|
|
|
let rurl;
|
|
|
|
|
let headers;
|
|
|
|
|
switch(subcmd){
|
|
|
|
|
case 49: //i:p1
|
|
|
|
|
{
|
|
|
|
@ -605,16 +606,18 @@ You should have received a copy of the GNU General Public License along with thi
|
|
|
|
|
rurl = url.substring(4);
|
|
|
|
|
data = [];
|
|
|
|
|
}
|
|
|
|
|
headers = 'Content-Type: application/x-www-form-urlencoded';
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case 50: //i:p2[url]#[filePath] post request with local file
|
|
|
|
|
rurl = url.substring(4,iQ);
|
|
|
|
|
data = [{type: 'file', filePath:url.substring(iQ+1)}];
|
|
|
|
|
headers = 'Content-Type: multipart/form-data';
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
tabs.children[iTab].loadURL(rurl,{postData:data,extraHeaders:'Content-Type: application/x-www-form-urlencoded'});
|
|
|
|
|
tabs.children[iTab].loadURL(rurl,{postData:data,extraHeaders:headers});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
case 113: //i:q for multiple queries
|
|
|
|
|