[racket] login to a site

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Thu Feb 14 08:06:44 EST 2013

The answer to this question depends entirely on the site. Most sites
will have an HTML form which expects you to send the credentials to
via the query string or maybe post data. The response is likely to
contain a cookie, in its headers, which you would include in the
headers on future requests.

Jay

On Wed, Feb 13, 2013 at 8:13 PM, prad <prad at towardsfreedom.com> wrote:
> i can access a site's page with get-pure-port (net/url).
>
> how can i do the same for a site which requires my login info?
>
> i see that there is a header field in get-pure-port, but don't know if
> that's to be used. also, wouldn't i require some sort of session
> tracking so that i can keep accessing pages on the site?
>
> --
> in friendship,
> prad
>
> ____________________
>   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

Posted on the users mailing list.