guile-www 1.1.1ttn3 available

Thien-Thi Nguyen <[email protected]>
Newsgroups gmane.lisp.guile.user,gmane.lisp.guile.sources
Message-ID <E18JQsA-0003R2-00@giblet>
the http 1.1 spec (rfc 2616) is 176 pages; it will be a while before
guile-www http implementation gets there...  however, for now, we have a
new proc to play with: http:post-form.  example usage:

  (http:post-form (url:parse "http://www.biomail.org")
                  (list "User-Agent: biomail2ris/1.0")
                  '((uid . 2342433)
                    (uid . 8193)
                    (submit . "Medline format")
                    (user . "jrandom")
                    (mail . "[email protected]")
                    (subj . "integrin AND rap1")
                    (lang . "")))

first arg is a url object.  second arg is a list of additional headers
("Content-Type" and "Host" are set automatically).  third arg is a list
of key-value pairs, to be rendered as "~A=~A", concatenated with "&",
and urlencoded in the body of an http request.  thanks go to w3m folks
for a convenient #ifdef HTTP_DEBUG in url.c.  tarball in:

  http://www.glug.org/alt/

thi


_______________________________________________
Guile-user mailing list
[email protected]
http://mail.gnu.org/mailman/listinfo/guile-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.