Я хочу получить избранное пользователя, но получаю исключение FileNotFound.Вот что я делаю:
URL mUrl = new URL(http://gdata.youtube.com/feeds/api/users/default/favorites?v=2 );
URLConnection conn = mUrl.openConnection();
conn.addRequestProperty("Authorization", "GoogleLogin auth=" + pToken);
conn.addRequestProperty("X-GData-Key", "key=" + pKey);
conn.connect();
InputStream is = conn.getInputStream();
int ch;
StringBuffer sb = new StringBuffer();
while( ( ch = is.read() ) != -1 ) {
sb.append( (char)ch );
}
apiResponse = sb.toString();
Заголовки HttpGet
Знаете ли вы, что может быть не так?
Спасибо.