1 USING: http.client http.client.private http tools.test
6 [ "localhost" f ] [ "localhost" parse-host ] unit-test
7 [ "localhost" 8888 ] [ "localhost:8888" parse-host ] unit-test
9 [ "foo.txt" ] [ "http://www.paulgraham.com/foo.txt" download-name ] unit-test
10 [ "foo.txt" ] [ "http://www.arc.com/foo.txt?xxx" download-name ] unit-test
11 [ "foo.txt" ] [ "http://www.arc.com/foo.txt/" download-name ] unit-test
12 [ "www.arc.com" ] [ "http://www.arc.com////" download-name ] unit-test
16 { url T{ url { protocol "http" } { host "www.apple.com" } { port 80 } { path "/index.html" } } }
20 { header H{ { "connection" "close" } { "user-agent" "Factor http.client" } } }
23 "http://www.apple.com/index.html"
29 { url T{ url { protocol "https" } { host "www.amazon.com" } { port 443 } { path "/index.html" } } }
33 { header H{ { "connection" "close" } { "user-agent" "Factor http.client" } } }
36 "https://www.amazon.com/index.html"