Re: [racket-users] Re: Practical HTTP requests?

2020-05-17 Thread Sorawee Porncharoenwase
I did a web scraping in Racket a couple of months ago, and I agree that it is painful. On the bright side, Bogdan seems to start working on a practical requests-like library due to this thread, so we should have a good practical HTTP request library

Re: [racket-users] Re: Practical HTTP requests?

2020-05-17 Thread Brian Adkins
Sorry - missed the fact that you already found the cookie library :) On Sunday, May 17, 2020 at 5:08:32 PM UTC-4, Brian Adkins wrote: > > I spent many years developing in Ruby before switching to Racket, so I > understand the appeal of a "batteries included" language. Python excels in > this

Re: [racket-users] Re: Practical HTTP requests?

2020-05-17 Thread Brian Adkins
I spent many years developing in Ruby before switching to Racket, so I understand the appeal of a "batteries included" language. Python excels in this area. If you're weighting the "batteries included" aspect very high, then Racket may not be suitable for you at this time, but in that case, I

Re: [racket-users] Re: Practical HTTP requests?

2020-05-17 Thread Sam Tobin-Hochstadt
I think you may want to use the lower-level 'net/http-client' library, which supports connection reuse and gives more control over the details of redirects. Sam On Sun, May 17, 2020, 11:52 AM fixpoint wrote: > I was under the incorrect impression that net/url did not support HTTP > 1.1. I

Re: [racket-users] Re: Practical HTTP requests?

2020-05-17 Thread fixpoint
Thanks, but that library does not support proxies. Oh well, my Racket adventures have come to an end as I’ll be unable to convince others at work to try it without a practical, batteries included http library. On Sunday, May 17, 2020 at 2:14:19 PM UTC-5, Jens Axel Søgaard wrote: > > Take a

Re: [racket-users] Re: Practical HTTP requests?

2020-05-17 Thread Jens Axel Søgaard
Take a look at the `http` package. https://docs.racket-lang.org/http/index.html I believe it can be used to receive and send cookies (and other headers), but I don't know how much is automatic. /Jens Axel Racket Stories https://racket-stories.com Den søn. 17. maj 2020 kl. 17.51 skrev

[racket-users] Re: Practical HTTP requests?

2020-05-17 Thread fixpoint
I was under the incorrect impression that net/url did not support HTTP 1.1. I suspect I stumbled upon some out of date information on stackoverflow. Thanks for pointing me in the right direction. Using net/url, net/cookies, and json, I hacked the following code (please be gentle, it is

[racket-users] Re: Practical HTTP requests?

2020-05-17 Thread evdubs
Have you taken a look at net/url ? From there, I see: - make-http-connection , which can allow calls to