[supertweet-twitter-api-oauth-proxy] r11 committed - use HTTPS on api.twitter.com side as required for API 1.1

49 views
Skip to first unread message

supertweet-twitte...@googlecode.com

unread,
Mar 30, 2013, 1:53:23 PM3/30/13
to supertweet-...@googlegroups.com
Revision: 11
Author: mrblogdotorg
Date: Sat Mar 30 10:53:16 2013
Log: use HTTPS on api.twitter.com side as required for API 1.1
http://code.google.com/p/supertweet-twitter-api-oauth-proxy/source/detail?r=11

Modified:
/trunk/src/neoauthlo/resource/ProxyResource.java

=======================================
--- /trunk/src/neoauthlo/resource/ProxyResource.java Wed Mar 27 11:56:49
2013
+++ /trunk/src/neoauthlo/resource/ProxyResource.java Sat Mar 30 10:53:16
2013
@@ -282,7 +282,7 @@
oAuthCfg.getConsumer_secret());
consumer.setTokenWithSecret(aToken.getToken(),
aToken.getTokenSecret());
- StringBuffer urlStr = new StringBuffer("http://api.twitter.com");
+ StringBuffer urlStr = new StringBuffer("https://api.twitter.com");
urlStr.append(req);
String d = "?";
for (final Entry<String, String> entry : fields.entrySet()) {
@@ -365,7 +365,7 @@
consumer.setTokenWithSecret(aToken.getToken(),
aToken.getTokenSecret());
HttpPost apiPost = new HttpPost(
- "http://api.twitter.com" + req);
+ "https://api.twitter.com" + req);

UrlEncodedFormEntity requestEntity;
try {
Reply all
Reply to author
Forward
0 new messages