如何在android中的volley库中添加授权头

时间:2017-06-14 11:04:05

标签: android header authorization android-volley

  

我想在android volley库中添加授权头,但是   不幸的是我收到错误" BasicNetwork.performRequest:   意外的响应代码400"

     

我尝试过很多建议,但它没有用。请帮帮我   解决这个问题。感谢。

//-77 is "equivalent" to 179 or 0xb3 (i also tried those using ByteArrayOutputStream, where these are valid values)
byte[] b = new byte[]{0,0,1,-77};

//I save the String to a txt, so i can check its value with midnight commander
try(  PrintWriter out = new PrintWriter("~/Desktop/output.txt")){
    out.println( new String(b) );
}
排球图书馆:

var data = [];

$(".proposal p").each(function () {
    data.push($(this).text());
});

0 个答案:

没有答案