bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Problem with Twitter Basic Authetification


From: Roland Mösl
Subject: [Bug-wget] Problem with Twitter Basic Authetification
Date: Wed, 14 Jul 2010 10:21:06 +0200

I purchased in February TweetAdder Software. 

But this software has so many time consuming bugs and so few features, that I 
feel forced to write my own Twitter software. 

I use Perl and make the requests to Twitter.com with WGET. 

Geting lists works fine, but now I want to sent follow and unfollow commands to 
Twitter requiring authentification. 

First I tried the following call of WGET 

"C:/Programme/GnuWin32/bin/wget.exe" --append-output=c:/twitter/twitter.log 
--server-response --save-headers --http-user=MYUSERNAME 
--http-password=MYPASSWORD --auth-no-challenge 
http://api.twitter.com/1/friendships/create.xml?user_id=27016367 
--output-document=c:/twitter/_follow_sent.txt 


After this failed always with 401 error, I tried to put direct a basic 
authentification line into --header 

"C:/Programme/GnuWin32/bin/wget.exe" --append-output=c:/twitter/twitter.log 
--server-response --save-headers --header "Authorization: Basic BASE64 encoded 
username=password" 
http://api.twitter.com/1/friendships/create.xml?user_id=27016367 
--output-document=c:/twitter/_follow_sent.txt 

Same 401 error problem 

No idea. 

best regards

Roland Mösl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]