8b43cb909a
Do not use put_readable_string_8_noexception, and just update put_string_8_noexception to accept READABLE_STRING_8.
2016-10-13 21:53:12 +02:00
897f64e4fe
Reuse http_network library.
...
Reintroduced HTTPD_STREAM_SOCKET for backward compatibility, and ease of usage.
Added websocket libraries (client, and protocol).
2016-10-13 16:25:11 +02:00
981942b2d6
Extracted network socket classes from httpd folder, and created a new library/network/http_network library.
...
Renamed HTTPD_STREAM_SOCKET as HTTP_STREAM_SOCKET.
Made http_client (net) library use the new http_network library.
2016-10-12 23:27:55 +02:00
d28f794828
Implemented chunked Transfer-Encoding in net_http_client.
...
Implemented support for buffer_size and chunk_size for net_http_client.
2016-10-12 16:49:08 +02:00
cc2d7dbb1c
Ignore empty header line.
2016-08-05 11:28:59 +02:00
cc3c8af6b4
Updated HTTP_COOKIE implementation
...
- by default the Cookie does not set max-age and expires, so it defines a Session Cookie.
(max_age and expires attributes are not included in the response)
- set_* and unset_* features to define max_age and expire attributes.
- marked old features as obsolete.
Updated test cases.
Signed-off-by: jvelilla <javier.hector@gmail.com >
2016-05-04 12:26:17 +02:00
e9afc9ad17
Updated package.iron files.
2016-02-02 09:57:03 +01:00
1a4db1d7c6
Eiffel code and ECFs update to support new agent notations.
...
Removed contrib/library/.../json library.
2016-01-18 16:41:10 +01:00
dde6a0b7de
Added specific configuration file, so that it is easier to use either libcurl or net implementation.
2015-10-19 08:46:31 +02:00
b64a281d75
Fixed timeout issue due to too many "ready_for_reading".
...
Fixed Connection behavior.
Fixed Content-Type settings.
Removed condition on POST or PUT, since code also applied to any request methods.
Added verbose output implementation.
2015-10-19 08:46:30 +02:00
b69b8aaaf9
Added first support for persistent connection in NET http client implementation.
...
Various improvement related to eventual errors.
2015-10-19 08:46:29 +02:00
65b28ed877
Updated README.md with configuration topics related to libcurl or net disabling.
...
Fixed ssl test by precising insecure ssl.
2015-10-19 08:46:27 +02:00
6c7637716b
Updated a few comments
...
Removed useless NULL_HTTP_CLIENT.
Extracted mime code from NET_HTTP_CLIENT_REQUEST.response into specific routine.
2015-10-19 08:46:26 +02:00
ff9a238f5c
Added https support with Net implementation.
...
Added notion of default HTTP_CLIENT, to be able to build portable code among http client implementation.
2015-10-19 08:46:25 +02:00
eec3cbdba1
Added null http client for upcoming changes.
...
Refactored NET request implementation.
- fixed potential issue with header conflict.
- simplified, and extract parts of the code into routine.
- Implemented read of chunked Transfer-Encoding
- Fixed potential issue with socket handling.
First steps to be able to exclude net or libcurl implementation when using http_client lib.
Removed from NET implementation the hack related to PUT and upload data (it was used to workaround an issue with libcurl).
2015-10-19 08:46:23 +02:00
29c4931dc0
Added support for chunked transfer-encoding response.
...
Implemented correctly the redirection support for NET_HTTP_CLIENT...
Added the possibility to use HTTP/1.0 .
Splitted the manual tests that were using during development.
First step to redesign and clean the new code.
2015-10-19 08:46:22 +02:00
Florian Jacky
9cd0f0b117
Fixed configuration files
2015-10-19 08:46:21 +02:00
Florian Jacky
aa0eb4fc43
Fixed configuration files
2015-10-19 08:46:20 +02:00
Florian Jacky
dbdc594b59
config files
2015-10-19 08:46:18 +02:00
Florian Jacky
4176a8c68b
correct password for authentication test
2015-10-19 08:46:17 +02:00
Florian Jacky
0557d1ee2d
added remaining features
2015-10-19 08:46:16 +02:00
Florian Jacky
eed8af9a0a
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
2015-10-19 08:46:15 +02:00
Florian Jacky
1b881c4f60
implemented http authorization, support for redirection and user-agent
2015-10-19 08:46:14 +02:00
Florian Jacky
770488dbd3
implemented http authorization, support for redirection and user-agent
2015-10-19 08:46:12 +02:00
3f69081d32
Added postcondition to ensure the result of {HTTP_CLIENT_REQUEST}.response is attached.
...
(useless with void-safety compilation, but keep it for non void-safe execution).
2015-10-19 08:46:11 +02:00
7033db7dc4
Removed useless redefination of is_equal.
2015-10-19 08:46:10 +02:00
a1a16b4a22
Fixing http_client.ecf file with correct locations.
2015-10-19 08:46:09 +02:00
98e92ee0fe
Basic initial Eiffel NET implementation.
2015-10-19 08:46:07 +02:00
29b55f36cf
Added skeleton for Eiffel Net implementation of HTTP_CLIENT solution.
...
This is work in progress.
2015-10-19 08:46:06 +02:00
98c12b8fb9
Made HTTP_DATE more flexible and support UTC+0000, GMT+0000 and now also +0000.
...
Added comments.
2015-10-08 11:00:01 +02:00
jvelilla
cc65bae644
Fixed typo: Aug instead of Aou.
2015-08-06 10:45:47 +02:00
8246bc1444
Updated various indexing notes.
...
Removed a few obsolete classes.
Cosmetics
2015-05-06 22:15:46 +02:00
jvelilla
30261632f6
Updated HTTP_COOKIE, enable to add a cookie with empty value.
...
Added feature to check if a date is valid rcf1123 is_valid_rfc1123_date.
Added test cases related to valid cookie dates.
Updated wsf_response add_cookie basedo on review comments.
2015-03-19 15:23:06 -03:00
jvelilla
08db0748f4
Updated is_valid_character, using NATURAL_32 as an argument to avoid multiple conversions.
...
Updated add_cookie, added features has_cookie_name and is_cookie line to avoid the use of
STRING.split and STRING.start_with.
2015-03-19 09:39:41 -03:00
jvelilla
9dc22bee24
Updated HTTP_COOKIE class based on comments.
...
Added missing descriptions in test classes
2015-03-17 17:00:07 -03:00
jvelilla
4a35ff7b77
Updated code based on Jocelyn's comments.
2015-03-13 17:41:48 -03:00
jvelilla
871e9792a5
Added HTTP_COOKIE and test cases.
...
Added WSF_COOKIE class, inherit from HTTP_COOKIE.
2015-03-13 15:28:38 -03:00
cad9322839
Merge branch 'master' into void-safe
2014-05-14 11:32:28 +02:00
31fcd61401
Make sure to be able to compile in complete void-safe for 14.05 and still compile with 13.11
2014-05-14 10:14:51 +02:00
Jocelyn Fiat
0b11663da4
Merge pull request #128 from jocelyn/response_header
...
Extracting HTTP_HEADER_BUILDER from HTTP_HEADER
Improving wsf session usage
Various unicode related improvement for router and error library.
2014-05-14 10:06:58 +02:00
cb3de17be9
renamed HTTP_HEADER_BUILDER as HTTP_HEADER_MODIFIER
2014-05-14 09:35:55 +02:00
fd66d79ecb
Updated ecf files toward complete void-safety
...
Added iron package files.
Added libfcgi files to compile .lib and .dll on Windows
2014-04-22 21:47:29 +02:00
da92d2d365
Added alias "[]" to `item', to get header value for a header name.
...
Added assigner for `item' to make it easier to add header item without confusing key and value.
Better parameter names (more explicit)
2014-03-18 14:13:16 +01:00
ae0ba66416
Added comments, used better parameter names.
2014-03-17 21:30:34 +01:00
718cebc700
Extracting HTTP_HEADER_BUILDER from HTTP_HEADER
...
to provide useful interface on WSF_RESPONSE,
and make WSF_SESSION easier to use.
2014-03-17 18:10:55 +01:00
bbc2bab0eb
Removed usage of remote anchor types.
2014-02-28 14:25:13 +01:00
jvelilla
942db6d708
Fixed error with identity encoding.
2014-01-07 15:09:54 -03:00
ea1c8a23cd
http_client: changed some default settings connect_timeout' and timeout' to 0 (never timeout)
...
Updated comments
2013-11-19 22:07:29 +01:00
f2da98c387
Fixed wrong assertion related to upload_data and upload_filename in HTTP_CLIENT_REQUEST_CONTEXT .
...
Fixed issue #124
Enable all assertion for the related autotest cases.
2013-11-12 21:37:39 +01:00
637303930a
Removed trimmed_string function and callers, and for now, use (left_|right_)adjust
2013-10-24 17:33:27 +02:00