I notice some spaces in the string. You may want to replace those with %20
and see if it makes a difference.

 

From: [email protected]
[mailto:[email protected]] On Behalf Of cuil yahoo
Sent: Sunday, February 20, 2011 12:55 PM
To: [email protected]
Subject: [android-developers] 404 Error

 

Can somebody please point out the error in the following code ? i am always
getting a 404 not found error.

String url = 
https://spreadsheets.google.com/feeds/spreadsheets/private/full/?oauth_signa
ture=2343243D
<https://spreadsheets.google.com/feeds/spreadsheets/private/full/?oauth_sign
ature=veCGhtgHZ9IdVg%3D&oauth_consumer_key=anonymous&oauth_version=1.0&oauth
_signature_method=HMAC-SHA1&oauth_timestamp=12981233697&oauth_nonce=23123412
3345223760713>
&oauth_consumer_key=anonymous&oauth_version=1.0&oauth_signature_method=HMAC-
SHA1&oauth_timestamp=12981233697&oauth_nonce=somthing... ( i have changed
the url a bit for reasons.. )

            HttpGet get = new HttpGet(url);

            HttpClient client = new DefaultHttpClient();
            HttpResponse response = client.execute(get);


            if (response.getStatusLine().getStatusCode() ==
HttpStatus.SC_OK) {

}

Isn't this the normal way of getting the response to any get call ? 


        
Thanks,


--
Cuil

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to