404 Error

by cuil yahoo » Mon, 21 Feb 2011 01:55:44 GMT


Sponsored Links
 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_signature=2343243D&oauth_consumer_key=anonymous&oauth_version=1.0&oauth_signature_method=HMAC-SHA1&oauth_timestamp=12981233697&oauth_nonce=somthing...<https://spreadsheets.google.com/feeds/spreadsheets/private/full/?oauth_signature=veCGhtgHZ9IdVg%3D&oauth_consumer_key=anonymous&oauth_version=1.0&oauth_signature_method=HMAC-SHA1&oauth_timestamp=12981233697&oauth_nonce=231234123345223760713>(
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

-- 



RE: 404 Error

by Tommy » Mon, 21 Feb 2011 04:11:37 GMT


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

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of cuil yahoo
Sent: Sunday, February 20, 2011 12:55 PM
To: android-developers@googlegroups.com
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

-- 


-- 


Sponsored Links


Other Threads

1. Control MP3 player via bluetooth.

Does anyone know if the ability to control the mp3 player via
bluetooth has been developed?

This would be a great item to include as when bluetooth stereo comes
out, the user could use their bluetooth car radio to controll the
music.

--~--~---------~--~----~------------~-------~--~----~

2. How to handle orientation changing of VideoView/MediaPlayer?

Hi, I'm writting a Video Player, and I wonder how can I handle
orientation changing of VideoView/MediaPlayer.
I wrote it without special issues, then it always restart when
orientation changes since Activity is destroyed and recreated.
But the App "Video Player" can rotate screen with only a little lag.
Does anybody know how he done it?
Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. Printing values

4. Populate Data on Android

5. Automatic Application Update via Market?

6. Windows SDK _ cupcake

7. Question for anyone with non-1.0