Re: [racket] retrieving an https url

2011-06-22 Thread Matthias Felleisen
On Jun 22, 2011, at 9:27 AM, Greg Hendershott wrote: > ;; make-ports : url -> in-port x out-port > (define (make-ports url proxy) > (let ([port-number (if proxy Thanks for pointing out that the comments are out of sync with the code :-) [another story for Sam's arsenal] _

Re: [racket] retrieving an https url

2011-06-22 Thread Greg Hendershott
At first I thought you meant users would need to set this parameter each time. Then I looked on GitHub.com and found this: ;; make-ports : url -> in-port x out-port (define (make-ports url proxy) (let ([port-number (if proxy (caddr proxy) (or (url-po

Re: [racket] retrieving an https url

2011-06-21 Thread Eli Barzilay
25 minutes ago, Greg Hendershott wrote: > I also agree. > > It should be a very simple change in url-unit.rkt. The last line of > `make-ports' is where `tcp-connect' is hardwired: [...] Yeah, that part isn't complicated, but it was tricky to get things to conform to the same API it has now. I d

Re: [racket] retrieving an https url

2011-06-21 Thread Greg Hendershott
I also agree. It should be a very simple change in url-unit.rkt. The last line of `make-ports' is where `tcp-connect' is hardwired: ;; make-ports : url -> in-port x out-port (define (make-ports url proxy) (let ([port-number (if proxy (caddr proxy) (

Re: [racket] retrieving an https url

2011-06-18 Thread Jay McCarthy
2011/6/18 Jordan Schatz : >> HTTPS support should *really*, *really* be in Racket out of the box, >> so that "get-pure-port" and friends do the right thing whether it's >> HTTP or HTTPS. > I'd second that... > > I haven't gotten to it yet but I think serving HTTPS also requires > jumping through so

Re: [racket] retrieving an https url

2011-06-18 Thread Danny Yoo
On Sat, Jun 18, 2011 at 6:55 PM, Eric Hanchrow wrote: > I've wrapped the thing into a PLaneT package at > http://planet.racket-lang.org/display.ss?package=ssl-url.plt&owner=offby1. > > The documentation is mostly a placeholder; I'd appreciate suggestions > for improvements. Cool; do you have a g

Re: [racket] retrieving an https url

2011-06-18 Thread Eric Hanchrow
I've wrapped the thing into a PLaneT package at http://planet.racket-lang.org/display.ss?package=ssl-url.plt&owner=offby1. The documentation is mostly a placeholder; I'd appreciate suggestions for improvements. _ For list-related administrative tas

Re: [racket] retrieving an https url

2011-06-18 Thread Neil Van Dyke
Jordan Schatz wrote at 06/18/2011 05:05 PM: Anyway HTTPS is something I have to deal with all the time in my work as a web developer and I think it would help people's perception of racket as a professional web dev language if it was more out of the box. Agreed. FWIW, HTTPS is used heavily

Re: [racket] retrieving an https url

2011-06-18 Thread Jordan Schatz
> HTTPS support should *really*, *really* be in Racket out of the box, > so that "get-pure-port" and friends do the right thing whether it's > HTTP or HTTPS. I'd second that... I haven't gotten to it yet but I think serving HTTPS also requires jumping through some hoops? Anyway HTTPS is something

Re: [racket] retrieving an https url

2011-06-18 Thread Neil Van Dyke
Sam Tobin-Hochstadt wrote at 06/18/2011 04:30 PM: I've put all of these examples up on the GitHub Racket wiki: https://github.com/plt/racket/wiki/HTTP-over-SSL Hopefully, that will be a useful reference the next time someone asks about SSL. HTTPS support should *really*, *really* be in Ra

Re: [racket] retrieving an https url

2011-06-18 Thread Sam Tobin-Hochstadt
I've put all of these examples up on the GitHub Racket wiki: https://github.com/plt/racket/wiki/HTTP-over-SSL Hopefully, that will be a useful reference the next time someone asks about SSL. On Sat, Jun 18, 2011 at 11:39 AM, YC wrote: > You can also try bzlib/http on planet - it can work with

Re: [racket] retrieving an https url

2011-06-18 Thread YC
You can also try bzlib/http on planet - it can work with SSL via the following call: (require (planet bzlib/http/client)) (http-get ) (http-post ) Hope this helps. yc On Sat, Jun 18, 2011 at 8:05 AM, Matthias Felleisen wrote: > I have modernized the language (not really necessary) and adap

Re: [racket] retrieving an https url

2011-06-18 Thread Matthias Felleisen
I have modernized the language (not really necessary) and adapted the example so that it does something useful (not very) with a real https url. See below. It's all in one drracket buffer to make it more easily readable. I am sure you can split it up into separate files. Basically all exports d

[racket] retrieving an https url

2011-06-17 Thread Jordan Schatz
I am still pretty new to Racket, I've built a few trivial projects and am now jumping into a more serious app. One of the first things I need to be able to do though is work with (as a client, not server) https urls. GET PUT POST HEAD DELETE, and most of the time send special headers. I have seen