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
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
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
John Benediktsson
9eb365abe0
http.client: add quot stack effect.
2015-04-17 17:54:29 -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
d4a56057f0
http.client: add starred versions that do not check response code for success.
2014-03-13 12:26:35 -07:00
John Benediktsson
272102e647
http.client: fix duplicate using.
2014-03-12 19:51:50 -07:00
John Benediktsson
cb9c171383
http.client: remove unused word.
2014-03-12 19:39:15 -07:00
John Benediktsson
712be93989
http.client: remove http-get* and its friends, change http-request* and with-http-request* to not check response codes.
2014-03-12 19:39:15 -07:00
John Benediktsson
6a2d6971c6
http.client: adding http-request*.
2013-10-12 10:57:00 -07:00
John Benediktsson
18088e1aa3
http.client: adding variants of http-methods that check the response code.
2013-10-12 10:25:08 -07:00
John Benediktsson
9cc27f22f7
http.client: add quotation stack effects.
2013-09-23 15:47:31 -07:00
John Benediktsson
b5484d33ba
http.client: support urls without protocols (in addition to strings).
2013-07-15 10:28:28 -07:00
John Benediktsson
0555425861
http.client: default to http:// if not specified.
2013-07-15 09:30:22 -07:00
John Benediktsson
1769a63ca3
http.client: too aggressive with ?CRLF.
2011-10-12 20:14:21 -07:00
John Benediktsson
46f8225f7a
http: change client/server to support LF and CRLF delimited headers.
2011-10-12 12:51:49 -07:00
otoburb
b8b1c30062
http.client: Added OPTIONS, TRACE and HEAD HTTP methods
2011-05-12 01:32:00 +00:00
Slava Pestov
97e6ac1c50
http: turns out we do need to handle port number in host header, and client needs to send it but only for non-default ports, since sending it for the default port breaks Twitter's HTTP server (reported by John Benediktsson)
2010-08-20 18:28:50 -07:00
Slava Pestov
a7dec01453
http: host header should not include the port number
2010-07-05 22:55:20 -04:00
Daniel Ehrenberg
aa6158b366
Changing require-when usages to the new syntax for require-when
2010-04-18 14:29:24 -05:00
Daniel Ehrenberg
eb060443db
Updating code to use require-when rather than vocab [ require ] when
2010-03-18 01:13:37 -04:00
Slava Pestov
937b05f1de
http: clean up and fix some content encoding logic
2010-03-13 22:10:36 +13:00
Slava Pestov
02a4082e1f
http.server: decouple charset header from encoding used to send the data, and serve text files as UTF-8 by default
2010-03-13 19:07:35 +13:00
Doug Coleman
55e772c528
Remove the http-data word
2010-03-01 22:32:15 -06:00
Doug Coleman
9bf7f56283
Add a new word http-data that is just http-get nip
2010-02-27 07:58:35 -06:00
Doug Coleman
b71d86a1dc
update more 8bit encoding usages
2009-11-12 18:36:47 -06:00
Alfredo Beaumont
45ee0a4269
Added support for custom redirect number in http requests
2009-06-18 20:47:08 +02:00
Slava Pestov
fb6df472a2
Cleaning up USING: lists for new strict semantics
2009-05-14 16:54:16 -05:00
Alex Chapman
9e4adede5f
Add <delete-request> and http-delete
2009-04-15 10:52:00 +10:00
Alex Chapman
f2596259dd
Merge branch 'master' into experimental
...
Conflicts:
basis/http/client/client.factor
2009-04-14 10:42:41 +10:00
Alex Chapman
ace909795d
couchdb in progress
2009-04-14 10:00:09 +10:00
Slava Pestov
694652590f
download word throneeds to ws an error if the request did not return a success code (reported by Chris Double)
2009-04-09 08:18:26 -05:00
Slava Pestov
63cf5b04e1
http.client: fix 307 redirect behavior (reported by Chris Double)
2009-04-07 04:19:21 -05:00
Alex Chapman
7b1ed9889f
Merge branch 'master' into experimental
...
Conflicts:
basis/http/client/client.factor
2009-02-16 12:48:58 +11:00
Joe Groff
2bb9448ebc
add set-basic-auth to http, and make http-request stuff the response body in the error message on failure
2009-02-12 22:39:26 -06:00
Alex Chapman
a04d8aaf17
Merge branch 'master' into experimental
2009-01-30 21:22:54 +11:00
Alex Chapman
da7a6da6a5
Merge branch 'master' into experimental
...
Conflicts:
basis/http/client/client.factor
2009-01-30 21:20:28 +11:00
Doug Coleman
3c408342ef
renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail
2009-01-29 22:19:07 -06:00
Daniel Ehrenberg
d5160ce791
Fixing USING: lines
2009-01-28 15:46:34 -06:00
Alex Chapman
4e41211399
Merge branch 'master' into experimental (untested!)
...
Conflicts:
basis/http/client/client.factor
2009-01-28 20:58:35 +11:00
Slava Pestov
7b344408ff
Working on better POST and PUT requests
2009-01-23 20:02:14 -06:00
Slava Pestov
f160771123
Fix POST with streams to use chunked encoding, add http-put word
2009-01-22 19:08:38 -06:00
Doug Coleman
376f332eef
allow streams in the post-data tuple
2009-01-21 22:21:40 -06:00