[racket] Serving http and https from the same server
That doesn't seem to work for me, attached are the server I'm using for testing,
a throw away cert and private key, and a test script to request the page over
https and http.
I am using Racket v5.3.0.9
HTTPS is served fine, but the HTTP requests returns empty.
Thanks,
Jordan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.rkt
Type: application/octet-stream
Size: 492 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120529/400df01e/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: private-key.pem
Type: application/octet-stream
Size: 890 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120529/400df01e/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cert.pem
Type: application/octet-stream
Size: 1256 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120529/400df01e/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.rkt
Type: application/octet-stream
Size: 298 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120529/400df01e/attachment-0007.obj>
-------------- next part --------------
On Tue, 29 May 2012 00:52:37 -0600, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
> Yes, just use the #:ssl keywords to serve/servlet and the servlet will
> be served from both HTTP and HTTPS.
>
> Jay
>
> On Mon, May 28, 2012 at 10:36 PM, Jordan Schatz <jordan at noionlabs.com> wrote:
> >
> > Is it possible to serve http and https from the same servlet?
> >
> > I would like to serve most of my application over SSL, but have a way to
> > redirect people from http to https.
> >
> > - Jordan
> > ____________________
> > ?Racket Users list:
> > ?http://lists.racket-lang.org/users
>
>
>
> --
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
>
> "The glory of God is Intelligence" - D&C 93