Skip to content

Instantly share code, notes, and snippets.

@samth
Created March 17, 2012 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samth/2065288 to your computer and use it in GitHub Desktop.
Save samth/2065288 to your computer and use it in GitHub Desktop.
#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