semifor / Net-Twitter

A Perl interface to the Twitter APIs
83 stars 37 forks source link

Always use https on api.twitter.com #38

Closed keithbro closed 10 years ago

keithbro commented 10 years ago

This addresses issue #37.

The ssl option still exists since search.twitter.com and upload.twitter.com still both support http.

For requests that call api.twitter.com, https will always be used regardless of whether ssl is set or not.

semifor commented 10 years ago

I may make ( ssl => 1 ) the default, but I don't want to eliminate the ability optionally switch between http and https. Net::Twitter (and Net::Twitter::Lite) work with other Twitter API compatible services, including private test servers. Some don't support SSL. Some support both. So, to preserve functionality for users that need it, the option should remain.

I'll be discussing the default change with some other module developers. I've always been very careful to ensure an upgrade to Net::Twitter does not break existing code. Even changing a default can do that, though this default change is obviously beneficial to most Net::Twitter users.

Thank you for the pull-request! Sorry I can't use it directly.