74e96d7816
Added PATCH support in http_client, and provided custom_with_upload_data and custom_with_upload_file.
2013-09-13 14:50:07 +02:00
527e877b30
forget about older version of Eiffel cURL
2013-09-13 14:49:09 +02:00
jvelilla
86e942ae0a
Merge branch 'master' of https://github.com/jocelyn/EWF
2013-08-21 08:33:53 -03:00
Colin Adams
69da6c6d06
Fixes as picked up by code review
2013-08-07 11:03:22 +01:00
Colin Adams
8ab6dba1c8
New routines added to HTTP_HEADER to support ploicy-driven framework
2013-08-06 13:49:58 +01:00
jvelilla
285e295b5a
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF
...
Conflicts:
draft/application/cms/README.md
draft/application/cms/src/cms_session.e
draft/src/gewf/license.lic
library/network/http_client/src/expectation/http_client_response_expectation.e
2013-07-08 18:08:35 -03:00
dc25723a35
Improved Unicode support.
2013-06-28 11:32:12 +02:00
8040dd5826
Ensured that EWF compiles with 7.2
...
(note about ecf version
1-10-0 void_safety="all" <--> 1-11-0 void_safety="transitional"
1-10-0 void_safety="all" <--- 1-11-1 void_safety="all"
)
2013-06-28 11:06:35 +02:00
jvelilla
d0fda6de66
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF
...
Conflicts:
draft/application/cms/cms.ecf
draft/application/cms/example/src/web_cms.e
draft/application/cms/src/cms_configuration.e
draft/application/cms/src/cms_default_setup.e
draft/application/cms/src/cms_service.e
draft/application/cms/src/cms_setup.e
draft/application/cms/src/handler/cms_file_system_handler.e
draft/application/cms/src/kernel/content/format/filters/cms_html_filter.e
draft/application/cms/src/modules/debug/debug_module.e
draft/application/cms/src/notification/cms_email.e
draft/application/cms/src/notification/cms_storage_mailer.e
draft/application/cms/src/storage/cms_sed_storage.e
draft/application/cms/src/storage/cms_storage.e
library/runtime/process/notification_email/notification_external_mailer.e
tools/bin/ecf_updater.exe
2013-06-18 09:56:53 -03:00
218e73945d
Updated ecf file as workaround to make autotest works fine.
2013-06-17 12:03:46 +02:00
2252971c3e
Added HTTP_DATE.append_to...string conversion feature
...
Made HTTP_DATE.append_...to...string more flexible by acception STRING_GENERAL,
so it is possible to append to STRING_32 (further more, it avoid potential implicit conversion)
2013-06-13 09:43:13 +02:00
cc4ef1a575
Better support for unicode path and values.
...
Added WSF_REQUEST.percent_encoded_path_info: READABLE_STRING_8
to keep url encoded path info, as it is useful for specific component
The router is now using WSF_REQUEST.percent_encoded_path_info
since URI_TEMPLATE are handling URI (and not IRI)
this fixes an issue with unicode path parameters.
This should not break existing code, and this fixes various unicode related issues related
to PATH parameter and path info
but also any component using file names.
(required EiffelStudio >= 7.2)
2013-06-12 18:03:11 +02:00
jvelilla
cdf3a25f88
Merge https://github.com/EiffelWebFramework/EWF
2013-06-11 11:12:15 -03:00
fa8b3fdccc
Added HTTP_DATE.make_now_utc for convenience.
2013-06-11 11:49:45 +02:00
fbbd1f1eee
Fixed various void-safety issue with recent compilers.
...
Note that EWF does now require EiffelStudio 7.2, and is compiling with 7.3
2013-06-07 15:40:50 +02:00
f41e83c30c
removed unused local variable
2013-05-31 12:28:58 +02:00
eab8df7e10
Added WSF_REQUEST.read_input_data_into_file (FILE)
2013-05-28 14:42:11 +02:00
jvelilla
47da8c17ea
Merge https://github.com/EiffelWebFramework/EWF
2013-05-19 10:17:52 -03:00
c61afe77a0
removed unused local variable
2013-05-14 18:31:44 +02:00
jvelilla
7679898159
Move expectation classed under a expectation cluster, added a new expectation class
...
for header.
2013-05-14 09:29:50 -03:00
jvelilla
8db7d0daa3
Initial implementation of HTTP RESPONSE EXPECTATIONS.
...
Added a class to test http client with httpbin.org and expectations
2013-05-10 09:48:28 -03:00
ad34ec1156
added header helper feature in the context interface
...
added HTTP_CLIENT_SESSION.custom (...)
to support any kind of request methods
2013-04-22 21:05:11 +02:00
a547cbaeb1
Fixed HTTP_CLIENT_RESPONSE when dealing with redirection
...
before it was storing some header in the body.
now we added redirections: .. which is a list of redirection informations:
- status line
- header
- and eventual redirection body (but at least by default, libcurl does not cache body)
Enhanced the http_client library to be able to write directly the downloaded data into a file (or as convenient thanks to agent).
2013-04-11 15:53:46 +02:00
Colin Adams
b321bee60e
merging from upstream - stage 1
2013-03-26 17:04:49 +00:00
Jocelyn Fiat
2eb9abeb37
Added remove_header_named (a_name)
2013-03-26 10:33:06 +01:00
Colin Adams
f11dbd9080
fix merge conflict from master
2013-03-21 15:55:14 +00:00
Colin Adams
a6fbed22fe
Implemented 503 and 414 responses in WSF_ROUTED_SERVICE
2013-03-16 14:08:33 +00:00
Olivier Ligot
45f0971594
Use new upstrem method put_header_key_values
2013-03-15 13:38:40 +01:00
Olivier Ligot
496b831956
Merge remote-tracking branch 'jocelyn/flexible_response' into cors
...
Conflicts:
examples/filter/filter-safe.ecf
examples/filter/src/filter_server.e
library/network/protocol/http/src/http_header.e
library/server/wsf/src/wsf_response.e
2013-03-15 13:33:13 +01:00
Jocelyn Fiat
82784529fe
Enhanced HTTP_HEADER with new helper features.
2013-03-12 16:19:43 +01:00
Jocelyn Fiat
441cf86eda
Enhanced HTTP_DATE with yyyy_mmm_dd output string.
2013-03-01 18:11:22 +01:00
Jocelyn Fiat
2302a91b5b
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF
2013-02-27 21:50:14 +01:00
Jocelyn Fiat
92d3f642ac
Provided a way to report cURL error code back to http_client, via HTTP_CLIENT_RESPONSE
2013-02-27 21:49:03 +01:00
Jocelyn Fiat
9c0a2bd6a1
prefer 2 append call, rather than create a temp intermediary string object with +
2013-02-26 15:33:00 +01:00
Jocelyn Fiat
a5c9329ada
Fixing global EWF compilation
2013-01-31 16:20:38 +01:00
Jocelyn Fiat
40ea982293
Added ANSI C date time string format support in HTTP_DATE.
2013-01-31 15:30:39 +01:00
Jocelyn Fiat
d172dedf31
Fixed HTTP_DATE for GMT+ offset (integer value)
2013-01-31 13:54:10 +01:00
Jocelyn Fiat
20d5798444
Added HTTP_DATE to ease http date manipulation and optimize code rather than using EiffelTime's code facilities.
...
Added autotests to `http' lib.
2013-01-31 11:23:11 +01:00
Jocelyn Fiat
8f232bd627
Added `append_string_to' to HTTP_HEADER
2013-01-23 16:23:10 +01:00
Jocelyn Fiat
acd942b720
Minor optimization in HTTP_HEADER
2013-01-22 21:13:40 +01:00
Olivier Ligot
c89a3f007f
Added {HTTP_HEADER}.put_header_key_values
...
This is mainly a refactoring that is useful for an upcoming PR
regarding CORS (smaller patches are better...)
Note that this also fixes a small typo where an extra space was
added when calling {HTTP_HEADER}.put_allow
2013-01-22 17:09:23 +01:00
Olivier Ligot
ff57d0ecd4
Cross-Origin Resource Sharing initial support
...
Initial support for the Cross-Origin Resource Sharing specification.
This allows JavaScript to make requests across domain boundaries.
Also reviewed the filter example to get rid of the context and
the generic classes (we can actually use {WSF_REQUEST}.execution_variable
and {WSF_REQUEST}.set_execution_variable).
Links:
* How to enable server-side: http://enable-cors.org/server.html
* Specification: http://www.w3.org/TR/cors/
* Github: http://developer.github.com/v3/#cross-origin-resource-sharing
2013-01-09 17:34:50 +01:00
Jocelyn Fiat
e4270b6297
Added is_available on HTTP_CLIENT_SESSION mainly to check if libcurl is available.
2012-12-20 18:36:58 +01:00
Jocelyn Fiat
c058012313
updated conneg .ecf
2012-12-20 10:18:50 +01:00
Jocelyn Fiat
59f19dc52f
Fixed WSF_RESPONSE chunk transfer implementation
...
and also the optional extension `a_ext' should now include the ';'
Now HTTP_HEADER is an ITERABLE [READABLE_STRING_8]
2012-12-19 11:45:59 +01:00
Jocelyn Fiat
4612fdb5de
Added Authorization and Allow
...
Added is_empty and count
2012-12-14 15:51:12 +01:00
Jocelyn Fiat
86540814b3
Include the `url' in the http client response.
...
This way, we can get the real url used by the lib, especially when there are query parameters.
2012-11-21 09:48:28 +01:00
Jocelyn Fiat
2c2e031944
Fixed Date: formatting, follow RFC 1123
2012-10-23 12:00:59 +02:00
Jocelyn Fiat
45daa731cf
Added put_expires_string (s: STRING) and put_expires_date (dt: DATE_TIME)
...
Better implementation for WSF_FILE_RESPONSE (added last modified, and other caching related info)
2012-09-10 09:27:32 +02:00
Jocelyn Fiat
3389973a75
More flexible signature to allow detachable READABLE_STRING_8
...
Signed-off-by: Colin Adams <colinpauladams@gmail.com >
2012-06-15 16:28:01 +02:00