Created
March 17, 2012 21:07
-
-
Save samth/2065288 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require net/url net/uri-codec) | |
(define url:string "https://myneu.neu.edu/cp/home/login") | |
(define the-url (string->url url:string)) | |
(define ip (post-pure-port | |
the-url | |
(string->bytes/utf-8 | |
(alist->form-urlencoded '((user . "me") (pass . "my_password")))) | |
empty)) | |
(port->string ip) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment