vibr
d174ad3954
add a copy of the regexp definitions HEX and ESCAPED from structure
...
url to resolve mutual dependency
2005-04-15 15:34:48 +00:00
vibr
184c284c4a
move these procs from lib/sunet-utilities to httpd/handler-lib:
...
GET-SOCKET-HOST-STRING
GET-NUMERIC-FIELD-VALUE
GET-BODY-LENGTH-FROM-CONTENT-LENGTH
CHUNKED-TRANSFER-CODING?
reason: they are httpd-specific in using httpd's data types
2005-04-15 15:23:32 +00:00
vibr
d915722a9b
implementing chunked transfer coding:
...
* new predicate CHUNKED-TRANSFER-CODING?
tests wether a request's entity body is sent in chunked
transfer-encoding
2005-04-15 12:31:43 +00:00
vibr
4c1e1a16a8
trivia: towards a more modern HTML: closing slash within empty HTML
...
elements
*new: EMIT-EMPTY-TAG
*use EMIT-EMPTY-TAG instead of EMIT-TAG where appropriate
2005-04-14 21:15:21 +00:00
vibr
9d3ddd79b9
*delete GET-SOCKET-HOSTNAME-AND-PORTNUMBER (was buggy anyway)
...
*rewrite GET-SOCKET-HOST-STRING
2005-04-14 14:06:00 +00:00
vibr
8974332da1
Location header must be an absolute URL:
...
*adapt file-dir-handler's 301 response
*new procs GET-SOCKET-HOSTNAME-AND-PORTNUMBER, GET-SOCKET-HOST-STRING
2005-04-14 11:38:37 +00:00
vibr
96b485294f
*new predicate ABSOLUTE-URL?
...
*remove URI-HAS-PROTOCOL?
2005-04-14 11:32:38 +00:00
vibr
fe6b3fffac
change URL-Parser's interface: parser now preserves info whether
...
Request-URI's path ends with a slash.
(See http://httpd.apache.org/docs-2.0/misc/rewriteguide.html ->
"Trailing slash problem" for reasons).
2005-04-13 10:32:29 +00:00
vibr
0c7c957f2b
add comment
2005-04-10 15:15:55 +00:00
vibr
512ccfaed3
removal of old URL parser relicts:
...
*replace calls of UNESCAPE-URI with UNESCAPE
*remove imports of uri package where no longer needed
2005-04-06 22:41:10 +00:00
vibr
ed53670895
*add comment explaining why we don't need to support "*" and authority
...
Request-URIS
*comment on when unescaping is done
*don't unescape query when building a http-url record
*don't escape query when unparsing a http-url record.
*remove PARSED-URI->HTTP-URL, integrate its code into
URL-STRING->HTTP-URL
*add dummy encoder ESCAPE-NOT-UNRESERVED-CHARS
2005-04-06 22:31:33 +00:00
vibr
17a46a7e71
rename URI-STRING->HTTP-URL to URL-STRING->HTTP-URL
2005-04-06 11:35:37 +00:00
vibr
da10de6309
add function HTTP-URL-PATH->PATH-STRING (unparses path in http-url record into string)
2005-04-05 18:43:23 +00:00
vibr
e5c8cae17f
rename HTTP-URL->URI-STRING to HTTP-URL->URL-STRING
2005-04-05 10:59:13 +00:00
vibr
1e93a6cb9f
rename PARSE-URI to PARSE-URL
2005-04-05 10:50:12 +00:00
vibr
cf747a97b4
*add solution for mistake in RFC 2616 (where query part of
...
Request-URIs is only allowed for absoluteURIs)
*rename PARSE-HTTP-URL to URI-STRING->HTTP-URL
2005-04-04 15:35:50 +00:00
vibr
ba78eba433
*add comment on another mistake in RFC 2616 (query part of
...
Request-URIs only allowed for absoluteURIs)
*add copy of Appendix A of RFC 2396 for convenience
2005-04-04 13:36:54 +00:00
vibr
ed1e4428c5
*move general procedures ESCAPE, UNESCAPE and their helper procs from
...
url.scm to uri.scm
-->Parser/Unparser for HTTP 1.1 URIs is now complete and resides in
url.scm; Encoder/Decoder applicable to URIs in general resides in uri.scm.
(All has been rewritten from scratch, next to nothing of Olin's code
is left).
<--
2004-10-18 18:23:03 +00:00
vibr
584bfa2cdb
*work around scsh bug (?) in definition of charset UNRESERVED
...
*new procs for encoding URIs:
-general proc ESCAPE taking an RegExp representing forbidden chars as argument
-specialized procs ESCAPE-SEGMENT, ESCAPE-QUERY
*new helper proc ASCII->ESCAPED
*use ESCAPE-SEGMENT and ESCAPE-URI in HTTP-URL->URI-STRING
2004-10-18 17:35:40 +00:00
vibr
c48446ba7f
*remove ESCAPE-URI (didn't reliably differentiate between different portions of
...
a URI)
*move INT->HEXCHAR to url.scm
2004-10-18 16:37:32 +00:00
vibr
44a8ef28be
*new procedure UNESCAPE (unescape URI-components using RegExps)
...
*move HEXCHAR->INT from uri.scm to here
*use UNESCAPE in PARSED-URI->HTTP-URL
2004-10-14 17:18:24 +00:00
vibr
9e71b351d4
*remove UNESCAPE-URI, HEX-DIGIT?
...
*move HEXCHAR->INT to url.scm
2004-10-14 17:14:44 +00:00
vibr
932f03a638
*fix two typos in RegExps
...
*better comments for PARSE-URI, SPLIT-PATH
*make SPLIT-PATH really accept PARSE-URI's return values
*restructure record-type HTTP-URL
*new procedure PARSED-URI->HTTP-URL
*rewrite PARSE-HTTP-URL to use PARSE-URI and PARSED-URI->HTTP-URL
*remove out-dated comments
*remove out-dated procedure PARSE-HTTP-URL-STRING
*remove DEFAULT-HTTP-SERVER (relict of server record-type)
*rewrite HTTP-URL->STRING
*rename HTTP-URL->STRING to HTTP-URL->URI-STRING
2004-10-11 17:01:32 +00:00
vibr
fe08e779f0
remove record-type server and associated procedures
...
(being a relict of parsing of general URIs)
2004-10-11 09:05:24 +00:00
vibr
41d3e29766
*add comment on how ambiguous definition of Request_URIs in RFC 2616
...
is 'solved' by uri-parser
*add comment on record-type server and associated procedures
2004-10-11 08:54:41 +00:00
vibr
a1e79c4fc7
parse HTTP 1.1 URIs:
...
* add RegExps
* add proc PARSE-URI
* add proc SPLIT-ABS-PATH
2004-10-06 19:10:49 +00:00
vibr
2cb8502f9e
remove uri-parser PARSE-URI
...
(completely out-of-date, has never seen RFC 2396)
2004-10-06 13:33:45 +00:00
vibr
649f374e8b
add comment on uri-parser
2004-10-06 13:29:06 +00:00
vibr
38f2594ba5
emit less newlines
2004-08-15 12:40:06 +00:00
vibr
35565068fb
char-set:blank = LWS from RFC 2616 (after folding)
2004-08-15 12:02:36 +00:00
vibr
ffac0ebcac
simplified get-numeric-field-value (now uses string-trim-both),
...
adapted packages.scm
2004-08-15 11:49:15 +00:00
vibr
8bf71fc3a5
get-numeric-field-value: correct error message
2004-08-15 11:06:39 +00:00
vibr
549594bef4
with-tag* outputs no newlines
2004-08-14 22:05:06 +00:00
vibr
8cf841bad3
rename get-content-length to get-body-length-from-content-length
...
move get-body-length-from-content-length and get-numeric-field-value
from seval.scm to sunet-utilities.scm
adapt packages.scm
2004-08-14 21:58:11 +00:00
vibr
6969b80206
- move XHTML stuff from responses.scm to htmlout.scm
...
- new function EMIT-PROLOG
- define XML namespace declaration
- adapt macro %hack-attr-elt: special treatment of xmlnsdecl-attr
(this is not nice, but the only alternative was hard-coding the XML
namespace declaration into the various handlers)
- element names -> lower case
2004-08-13 15:46:53 +00:00
sperber
0db253e1a1
Add hack for the benefits of ftpds on AFS directories, to enable
...
anonymous-upload directories:
We don't list a directory unless the Unix permissions would allow us
to.
2004-03-26 13:46:56 +00:00
mainzelm
222f5c5052
Return 'unsupported-message-type if message type is unknown, return
...
'unsupported-message-class if message class is unknown.
This makes it possible to parse replies that contain IP6 addresses in
the additional section.
2004-03-24 20:52:12 +00:00
mainzelm
a65a5c5f86
Fixed severe bug in WITH-LOCK. Noted by Taylor Campbell
2004-03-16 07:30:14 +00:00
mainzelm
f328c0537f
In copy-ascii-port->port, get length of line only after checking for EOF.
2004-02-17 16:07:22 +00:00
mainzelm
2066f225bf
Fixed parsing of comments in resolv.conf
2004-02-02 10:21:20 +00:00
mainzelm
cf8911921d
Fixed bug in send-receive-message-tcp where a WITH-HANDLER was called
...
with erroneous arguments.
2004-01-27 16:29:42 +00:00
mainzelm
a5d9b210f0
Fixed wrong parentheses in FTP-APPEND
2003-10-21 05:44:56 +00:00
cresh
6f52781aa6
* added dns-check-nameservers
...
* fixed alists in send-receive-message-tcp
* fixed and added documentation
2003-08-19 14:36:08 +00:00
cresh
e71a3581af
fixed bugs related to invalid nameservers:
...
* added new error signal no-nameserver-given
* modified send-receive-message-* functions:
- better error handling
- timeout/maxtries functionality
- try to contact all nameservers,
before error is signaled
2003-07-09 20:45:20 +00:00
cresh
dbd13f24ab
Minor changes in parse-resolv.conf.
2003-06-30 10:57:26 +00:00
mainzelm
886b8f7dd1
Made uri-escaped-chars the complement of alphanum | mark.
2003-06-25 07:49:54 +00:00
mainzelm
8111eddf82
Fix broken call to map in lookup-optional-args.
2003-02-19 17:37:35 +00:00
interp
da98c4b78c
factor out GET-HEADER
2003-02-19 17:05:16 +00:00
mainzelm
0b8c33af3f
Removed fqdn? and unqualified-hostname
2003-02-10 13:13:26 +00:00
mainzelm
45223c1d81
Created structure ips for ip-string related procedures.
2003-02-10 12:30:43 +00:00