Commit Graph

256 Commits (6e83fd40686faba4533f2316d20bd44075db4893)

Author SHA1 Message Date
Doug Coleman 0f217b9cf0 http.server.static: sort files for static html directory listing. seems to be sorted on mac already, but not on linux. consider allowing a sort order parameter in the future. 2016-06-01 11:59:57 -07:00
Doug Coleman 0e55a173a0 http.client: disable sni test that hits the velox.ch site as per requested by the site owner. 2016-05-22 22:53:28 -07:00
Jon Harper 617a725ba5 http.client, proxy defaults to http protocol like for the target 2016-03-31 06:25:03 -07:00
Jon Harper ed33bc7862 http.client, request-url don't try to fix unfixable urls
Before, it would prepend http:// to anything and that would create
bad urls like URL" http://http://". It's simpler to fix only what is
fixable
2016-03-31 06:25:03 -07:00
Jon Harper 9cbf548340 http.client: throw if the proxy not empty and not valid 2016-03-31 06:25:03 -07:00
John Benediktsson 498285d7dd unicode: make this the API for all unicode things. 2016-03-30 23:29:48 -07:00
John Benediktsson fc8830b03e http.client: make no-proxy? to do less work with no proxies. 2016-03-30 13:49:11 -07:00
Jon Harper 62603e1f8c http.client, allow to use http proxies 2016-03-30 13:46:55 -07:00
Jon Harper e272a5a670 http.client, automatically add basic auth from urls if present 2016-03-30 13:46:55 -07:00
Jon Harper 2bf3eb3919 http.client, don't write the anchor in the request line 2016-03-30 13:46:55 -07:00
Jon Harper 4ad5071b70 http.client, fix GETs after POSTs redirects
Before this change, after a post is responded to by a 301 redirect,
the next GET had the "content-length: XX" and
"content-type: application/x-www-form-urlencoded" http headers.

Detected by running "http" test while using
squid 3.3.8 which returns a 411 error in this case.
2016-03-30 13:46:55 -07:00
John Benediktsson 2cf223d863 http: fix tests for string-lines. 2016-03-13 20:01:58 -07:00
Benjamin Pollack 3fda77dbe8 Add an SNI-based http.client test 2016-03-03 09:48:20 -08:00
John Benediktsson 02c4ec3630 http.server.requests: fix LH{ } in tests. 2015-11-04 13:01:59 -08:00
John Benediktsson 29f94f8a65 http.server.static: better fix for cgi-docs issue. 2015-10-02 11:32:20 -07:00
John Benediktsson 36c002f567 http.server.cgi: different fix maybe. 2015-10-02 11:25:36 -07:00
John Benediktsson 761f0d630e Revert "http.server.cgi: fix for the dependency cycle http.server.cgi <=>"
This reverts commit 51c5484e24.
2015-10-02 11:12:56 -07:00
Björn Lindqvist 51c5484e24 http.server.cgi: fix for the dependency cycle http.server.cgi <=>
http.server.static (#1311)
2015-10-02 14:19:47 +02:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
Doug Coleman be82224fe9 peg: 'convention' -> convention-parser for Factor word names. In EBNF DSL, 'convention' is obviously still allowed. 2015-08-15 18:10:52 -07:00
John Benediktsson 2bb93f1b72 furnace.actions: return Method Not Allowed if not GET/HEAD/POST. 2015-08-15 16:57:40 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman b6be8685c3 basis: ERROR: changes. 2015-08-13 03:20:39 -07:00
Doug Coleman 330c7ba156 factor: Removing SLOT: nth/at/global in favor of using change: at for tuple slots named ``at`` and change-at for hashtables.
Redo many FROM: and QUALIFIED: and using lists.
2015-08-12 08:49:02 -05:00
Doug Coleman 1fcf96cada factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon. 2015-07-25 22:59:56 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -07:00
Doug Coleman 43d6f1d3e2 factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:. 2015-07-02 17:28:17 -07:00
Doug Coleman 40892c0302 tests: prefer ${ } instead of 1array 2015-07-02 14:56:14 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman e3cb325040 factor: clean up whitespace in -docs files 2015-07-02 10:31:22 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson 2c3492a916 minor cleanup to some docs. 2015-05-13 16:09:14 -07:00
Björn Lindqvist ba8caa72fb io.crlf: the lf>crlf and crlf>lf words looks generally useful, lets put them in io.crlf to reduce some code duplication 2015-05-12 09:32:05 -07:00
Björn Lindqvist 36444f328f http.server.requests: an upper limit is needed for the content-length header 2015-05-12 09:32:05 -07:00
Björn Lindqvist 7647020615 http.server: extend handle-client-error so that it responds with 400 Bad Request if the request is invalid 2015-05-12 09:32:05 -07:00
Björn Lindqvist eac41a588a http.server.requests: if the content-length header is missing or invalid, a (controlled) error is thrown 2015-05-12 09:31:22 -07:00
Björn Lindqvist d30beb13ed http.server.requests: system for read-request for reporting errors
The idea is that read-request throws request-error if something is
wrong with the request. handle-client* can then catch it and respond
with 400 bad request. This way you can differentiate between bad
requests and requests that causes the HTTP server to crash.
2015-05-12 09:31:22 -07:00
Björn Lindqvist 99012bb20a http.server.requests.tests: more tests for POST requests handling 2015-05-12 09:31:21 -07:00
Björn Lindqvist f75ee294e7 http.server.requests: refactor the http.server vocabs request handling into its own vocab 2015-05-12 09:31:21 -07:00
John Benediktsson 9eb365abe0 http.client: add quot stack effect. 2015-04-17 17:54:29 -07:00
John Benediktsson e164fcf431 http.parsers: parse a "simple request". 2015-03-11 17:48:28 -07:00
Doug Coleman ed7ceaf900 http.server: Make sure http.forms is loaded for http.server docs. Fixes #1216. 2014-11-23 01:05:21 -08:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
Björn Lindqvist 84663ca054 http.server: handle certain parse-errors from the peg vocab
Browsers that can't verify the certificate doesn't send any request at
all which causes parse-errors to be unnecessarily thrown and logged.
2014-10-23 11:31:17 -07:00
Björn Lindqvist 1824680ad1 furnace.db: db-persistence needs a dispose word that delegates to its pool slot
tests in http.tests refactored using "with-words" so that they always
dispose any db-persistence instances they create.
2014-09-28 20:39:25 -07:00
John Benediktsson 1701fe3f59 http.client: adding version of download-to that checks file exists. 2014-06-09 08:57:45 -07:00
John Benediktsson 57f9d78892 improve help by linking to types directly. 2014-05-23 20:20:15 -07:00
John Benediktsson 98935b7f15 docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``. 2014-05-18 20:09:10 -07:00