1 USING: http.client http.client.private http tools.test
4 [ "localhost" f ] [ "localhost" parse-host ] unit-test
5 [ "localhost" 8888 ] [ "localhost:8888" parse-host ] unit-test
7 [ "foo.txt" ] [ "http://www.paulgraham.com/foo.txt" download-name ] unit-test
8 [ "foo.txt" ] [ "http://www.arc.com/foo.txt?xxx" download-name ] unit-test
9 [ "foo.txt" ] [ "http://www.arc.com/foo.txt/" download-name ] unit-test
10 [ "www.arc.com" ] [ "http://www.arc.com////" download-name ] unit-test
14 { url T{ url { protocol "http" } { host "www.apple.com" } { port 80 } { path "/index.html" } } }
18 { header H{ { "connection" "close" } { "user-agent" "Factor http.client" } } }
22 "http://www.apple.com/index.html"
28 { url T{ url { protocol "https" } { host "www.amazon.com" } { port 443 } { path "/index.html" } } }
32 { header H{ { "connection" "close" } { "user-agent" "Factor http.client" } } }
36 "https://www.amazon.com/index.html"