ok .. i got it. it should be
httpget.addHeader("Authorization", "GoogleLogin auth=" +auth); On Oct 6, 11:35 am, dadada <ytbr...@gmail.com> wrote: > hi, > > so i tried the following > > HttpGet httpget = new HttpGet("http://maps.google.com/maps/feeds/maps/ > default/full"); > httpget.addHeader("Authorization: GoogleLogin", "auth="+authVal ); > > where the authVal is the token retrieved previously. > > But I am getting the following error: > > Authentication error: Unable to respond to any > of these challenges: {googlelogin=WWW-Authenticate: GoogleLogin > realm="http://ww > w.google.com/accounts/ClientLogin", service="local"} > W/System.err( 8462): org.apache.http.client.HttpResponseException: > Missing auth > token > > what am i doing wrong? thanks! > > On Oct 6, 11:21 am, dadada <ytbr...@gmail.com> wrote: > > > > > hi > > > how do i include Authorization: GoogleLogin auth="authorization_token" > > into the httpclient? > > > should i be doing : > > > List<NameValuePair> nameValuePairs = new > > ArrayList<NameValuePair>(1); > > nameValuePairs.add(new BasicNameValuePair("Authorization", > > "GoogleLogin auth="authorization_token"")); ?? > > > Thanks! > > bryan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en