Tried that, didn't work: Code: http://pastie.org/private/bcyr8knuiyt2j1fe96eha Error: http://pastie.org/private/rvyrodlkt37jhgcq9yqw
Without the headers it works fine (return invalid authentication). References used: - http://stackoverflow.com/questions/280024/using-shoes-download-to-do-basic-http-authentication - http://help.shoooes.net/App.html#download - http://hackety.org/2008/08/15/threadedDownloadsInShoes.html Spent enough time on this, now I need to clean virus on the damn thinkpad. back to sucky windows :\ Maybe tomorrow night. Nuno On Thu, Dec 18, 2008 at 11:40 AM, _why <[email protected]> wrote: > On Thu, Dec 18, 2008 at 09:06:20AM -0500, Nuno Job wrote: > > One of problems with the bundled shoes download (and possibly upload > method) > > is the lack of authentication? > > The `download` method takes an option called :headers where you can > pass in authentication. > < > http://stackoverflow.com/questions/280024/using-shoes-download-to-do-basic-http-authentication > > > > > Also I think download works as download to file not memory. > > You can do both. Look over the examples in the docs. Looks like I > really need to write more on this topic. > <http://help.shoooes.net/App.html#download> > > > If you try twitter client I made and connect to a local lan it will crash > > because while trying to connect as the connections doesn't timeout right > > away. What should I do to prevent this behavior without using threads? > > Report the bug! I'm serious: you don't want to use Ruby threads for > this and you don't want to use Net::HTTP. If you search the web for > Net::HTTP benchmarks, you'll get the picture. > > See, the picture is a graph where the line just keeps going up and up! > > _why >
