now supports sending requests, receiving headers, receiving message text, redirection, agent header, cookies, basic http authorization, sending data using post using url-encoding, sending file as post as data, sending put data

This commit is contained in:
Florian Jacky
2015-07-12 18:14:30 +02:00
committed by Jocelyn Fiat
parent 1b881c4f60
commit eed8af9a0a
3 changed files with 104 additions and 6 deletions

View File

@@ -185,6 +185,9 @@ feature -- Access
headers: HASH_TABLE [READABLE_STRING_8, READABLE_STRING_8]
-- Headers common to any request created by Current session.
cookie: detachable READABLE_STRING_8
-- Cookie for the current base_url
feature -- Authentication
auth_type: STRING
@@ -212,6 +215,12 @@ feature -- Element change
set_base_url (u: like base_url)
do
base_url := u
cookie := Void
end
set_cookie (c: READABLE_STRING_8)
do
cookie := c
end
set_timeout (n_seconds: like timeout)
@@ -300,7 +309,7 @@ feature -- Element change
end
note
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
copyright: "2011-2015, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software