[twitter-dev] Re: Getting a 500 Error with oAuth Plus Signpost (Java)

2009-08-06 Thread John Kristian

Call setRequestMethod before you call sign.  The signature is a
function of the method, among other things.

On Aug 4, 7:18 pm, msea85 carru...@gmail.com wrote:
 URL url = new URL(http://twitter.com/statuses/update.xml;);
 HttpURLConnection request = (HttpURLConnection) url.openConnection();
 consumer.sign(request);
 request.setRequestMethod(POST);


[twitter-dev] Re: Getting a 500 Error with oAuth Plus Signpost (Java)

2009-08-06 Thread msea85

Tried that, tried moving sign() all over the place to no avail.

for what its worth, I seem to be able to do GETS just fine.

URL url = new URL(http://twitter.com/statuses/friends_timeline.xml;);
HttpURLConnection request = (HttpURLConnection) url.openConnection();
consumer.sign(request);
request.connect();

Works perfectly.

On Aug 5, 3:55 pm, John Kristian jmkrist...@gmail.com wrote:
 Call setRequestMethod before you call sign.  The signature is a
 function of the method, among other things.

 On Aug 4, 7:18 pm, msea85 carru...@gmail.com wrote:



  URL url = new URL(http://twitter.com/statuses/update.xml;);
  HttpURLConnection request = (HttpURLConnection) url.openConnection();
  consumer.sign(request);
  request.setRequestMethod(POST);- Hide quoted text -

 - Show quoted text -