From: Tim Becker Date: 2007-02-09T21:34:40+09:00 Subject: Re: [ANN] SimpleHTTP initial release Thanks everyone for your replies! I've made a couple of changes and will release a new version soon to reflect your feedback (most stuff is already in subversion) I'll upload a new gem, etc, shortly. On 2/9/07, Trans wrote: Cookies are supported by way of request and response headers. You have to handle the cookie data, realms and expiry yourself, though: ht = SimpleHttp.new 'www.example.com' ht.get cookie = ht.response_headers['set-cookie'] It might be possible to do something like this: SimpleSession { ht = SimpleHttp.new 'www.example.com' ht.get page = SimpleHttp.get 'www.example.com/index2.html' ** } ** this call would have cookies automatically set to the values returned in the first call. Not sure how that would work yet, but it may be worth pursuing. On 2/9/07, Pe�a, Botp wrote: > it's require "simple_http", right? correct, I've updated the README accordingly. > 2. how about auto completion sounds like an interesting idea, but I'm not sure how to set up the heuristics of autocompletion. When would you try alternatives? When DNS lookup fails for `example.com`? If you can't connect to port 80? On a 404? I've got a bit of auto completion already in the you can leave out the 'http://" bit if you like :) Anyhow, it sounds like a great feature, but I have no idea how I'd implement it, I'm very open to input, though... On 2/9/07, Robert Dober wrote: > I do have problems with the proxy, without a proxy simple_http works just fine. Could you tell me what sort of problems you were having? I just tried it here with a proxy and it worked fine. > May I suggest that you add setup.rb into the package (root of the tarball) > http://i.loveruby.net/en/projects/setup/ I added it to the package. Guess you learn something new every day, I had no idea setup.rb was it's own project! Thanks again! -tim