guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

www http:user-agent


From: Kevin Ryde
Subject: www http:user-agent
Date: Sat, 17 Jan 2004 09:02:46 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

I'm not the first to notice this,

        * http.scm (http:user-agent): Use "/" as per rfc1945 sec 3.7.

And to help applications know what to do,

        * doc/guile-www.texi (http): Describe http:user-agent.

--- http.scm.~1.13.~    2004-01-07 16:58:04.000000000 +1000
+++ http.scm    2004-01-15 11:43:24.000000000 +1000
@@ -51,7 +51,7 @@
 ;;; Variables that affect HTTP usage.
 
 (define-public http:version "HTTP/1.0")  ; bump up to 1.1 when ready
-(define-public http:user-agent "GuileHTTP 0.1")
+(define-public http:user-agent "GuileHTTP/0.1")
 
 ;; An HTTP message is represented by a vector:
 ;;     #(VERSION STATUS-CODE STATUS-TEXT HEADERS BODY)
--- guile-www.texi.~1.3.~       2002-04-27 11:51:57.000000000 +1000
+++ guile-www.texi      2004-01-15 11:24:10.000000000 +1000
@@ -75,6 +75,20 @@
 
 @end titlepage
 
address@hidden  @nicode{S} is plain S in info, or @code{S} elsewhere.  This can 
be
address@hidden  used when the quotes that @code{} gives in info aren't wanted, 
but
address@hidden  the fontification in tex or html is wanted.
address@hidden
address@hidden nicode {S}
+\S\
address@hidden macro
address@hidden ifinfo
address@hidden
address@hidden nicode {S}
address@hidden
address@hidden macro
address@hidden ifnotinfo
+
 @c ---------------------------------------------------------------------------
 @node Top
 @top  Guile-WWW
@@ -127,6 +141,14 @@
    (http:request method url . args)
 @end example
 
address@hidden http:user-agent
+A string @nicode{"GuileHTTP/0.1"} indicating the version of Guile-WWW
+in use.  An application can add this to its own version indication
+when constructing a User-Agent header.  See RFC 1945 sections 3.7 and
+10.15 for details.
address@hidden defvar
+
+
 @c ---------------------------------------------------------------------------
 @node    url
 @chapter url

reply via email to

[Prev in Thread] Current Thread [Next in Thread]