Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Connection timeout #2

Open
eviltwin opened this issue Nov 18, 2010 · 5 comments
Open

Connection timeout #2

eviltwin opened this issue Nov 18, 2010 · 5 comments

Comments

@eviltwin
Copy link

I'm getting connection timeouts when trying to use the library, even using just the example:
dial tcp 128.242.250.183:80: connection timed out

This happens on the call to client.User(). Copying the userUrl and pasting it in a browser also results in a timeout. I noticed in the twitter docs that they list this url as https, which does result in a working connection and an auth challenge. I attempted naively changing the urls in the source code to https but this didn't didn't work either. I'd greatly appreciate some feedback/guidance on this.

@hoisie
Copy link
Owner

hoisie commented Nov 19, 2010

In the user stream documentation, there's a bullet point:

  • HTTPS, OAuth and JSON only. Consider the delimited=length option.

So it seems like we need to connect through https.

@eviltwin
Copy link
Author

Do you have any plans to patch this sometime soon?

@tncardoso
Copy link
Contributor

I tried working on this issue, but i couldnt make clientConn work with Https. What about using:

func Get and Post?
http://golang.org/pkg/http/#Response.Get
http://golang.org/pkg/http/#Response.Post

@hoisie
Copy link
Owner

hoisie commented Jan 25, 2011

Hey guys,

I just committed a change that adds support for the Site Stream API using OAuth+SSL. I added a dependency to another go project, httplib, because the Go http client is pretty limited. My goal is to get rid of the basic Authentication in favor of OAuth+SSL.

@tncardoso
Copy link
Contributor

Nice! :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants