Open JamesGold23 opened 10 years ago
"At the time of this writing, reddit does not support API requests over HTTPS when authenticated via cookies (however, the authentication flow should be done over HTTPS). However, if using OAuth, HTTPS is required. The downside is that only API endpoints accessible via OAuth can be used; though the majority of common endpoints are covered, there are a few missing."
It seems like for the time being, the proper changes for us to maximize our usage SSL requests to the Reddit API would be as follows -
RedditRequestor
so that an additional executeSecurePost
method is availableReddit.login()
so that it uses the above methodDoes this make sense?
Simply changed the protocol to
HTTPS
and the host tossl.reddit.com
. Logging in and new captcha work fine but subreddits new fails with a HTTP 302 redirect error. Could be because Reddit is trying to redirect the request to a HTTP URL, but HttpURLConnection doesn't allow cross-protocol redirects.