Jocelyn Fiat
7314e92fe6
Synchronized with nino and json library
2012-02-28 09:20:08 +01:00
Jocelyn Fiat
d621987020
Minor correction, to avoid returning 200 as status code, when the client can not connect
2012-02-16 10:32:24 +01:00
Jocelyn Fiat
e541fdcb0c
fixed compilation
2012-02-15 12:36:57 +01:00
Jocelyn Fiat
5950d768c9
sync with cURL library
2012-02-15 11:58:32 +01:00
Jocelyn Fiat
413fdaf6cd
Fixed error visitor due to recent signature changes
2012-02-15 11:33:39 +01:00
Jocelyn Fiat
9138ffedfb
renamed (add|remove)_synchronized_handler as (add|remove)_synchronization
2012-02-15 11:07:12 +01:00
Jocelyn Fiat
72cc05532c
Removed tests target from encoder(-safe).ecf
...
(now there is a tests-safe.ecf in folder tests)
2012-02-15 11:04:42 +01:00
Jocelyn Fiat
145b129b28
Fixed ERROR_HANDLER.destroy
...
Fixed and export ERROR_HANDLER.remove_synchronized_handler
Added comments
Added associated autotests
2012-02-15 11:03:30 +01:00
Jocelyn Fiat
fbec89f354
Better signature for encoders
...
Split library .ecf and the autotest .ecf
2012-02-14 18:03:42 +01:00
Jocelyn Fiat
f59d5cac32
added postcondition to ensure the body string set to the response, is the same reference
...
this is important, since sometime we just do
rep.set_body (s)
s.append_string ("..")
2012-02-14 18:02:14 +01:00
Jocelyn Fiat
4bb8a71c1b
Added DEBUG_OUTPUT to ERROR, since this is convenient during debugging
2012-02-14 18:01:17 +01:00
Jocelyn Fiat
dd6b74326e
Added notion of synchronization between error handler
...
this is convenient to integrate two components using their own ERROR_HANDLER (not sharing the same object)
2012-02-14 12:57:01 +01:00
Jocelyn Fiat
e52cd6b352
use WSF_PAGE_RESPONSE, instead of reimplementing it ourself
2012-02-14 10:20:15 +01:00
Jocelyn Fiat
537bd8241f
added a JSON encoder test case
2012-02-13 14:38:13 +01:00
Jocelyn Fiat
040c1d1c10
Merge pull request #9 from oligot/fix-libfcgi-location
...
[FIX] libfcgi.so location
2012-02-13 03:21:29 -08:00
Olivier Ligot
f3c779cf6e
[FIX] libfcgi.so location
...
On Ubuntu 10.04 LTS, libfcgi.so is in /usr/lib instead of /usr/local/lib
2012-02-10 14:01:04 +01:00
Jocelyn Fiat
6cf35e90c6
added a case in test_json_encoder
2012-02-08 21:36:49 +01:00
unknown
497fe03d38
libcurl: Applied a workaround to avoid issue on Win32 (see LIBCURL_HTTP_CLIENT_REQUEST.apply_workaround)
...
Separated the http_client-safe.ecf and test-safe.ecf
Added HTTP_CLIENT_SESSION.set_max_redirects
Fixed broken test due to formatting trouble.
2012-02-08 21:32:25 +01:00
Jocelyn Fiat
ca3a520bb9
fixed http_client tests
2012-02-08 16:36:54 +01:00
Jocelyn Fiat
3a9b67c8ad
Better code to test similar functions but with chunked input
2012-02-07 16:05:19 +01:00
Jocelyn Fiat
e21da4a591
Improved the WSF_PAGE_RESPONSE to be more flexible and allow to change some values as expected.
2012-02-07 15:49:02 +01:00
Jocelyn Fiat
69bc4d568c
Added support for chunked input data (see Transfer-Encoding: chunked)
2012-02-07 15:47:55 +01:00
Jocelyn Fiat
cf8d25c4e5
Added HTTP_HEADER.append_header_object and append_array.
...
This is helpful to "merge" two HTTP_HEADER and provide user friendly features
2012-02-07 15:45:44 +01:00
Jocelyn Fiat
2b9ca86501
Added proxy, at least to make it is possible to use http://fiddler2.com/ to inspect the traffic.
2012-02-07 15:44:45 +01:00
Jocelyn Fiat
2f43660628
Merge branch 'master' of https://github.com/jvelilla/Eiffel-Web-Framework
2012-02-07 15:13:59 +01:00
Jocelyn Fiat
d8476edf36
Fixed wrong code for postcondition on HTTP_HEADER.string
...
Patch provided by Paul-G.Crismer
2012-02-01 16:53:24 +01:00
Jocelyn Fiat
67e6b460b3
removed unwanted set_status_code, since we already use put_header to set the status code.
2012-02-01 16:05:30 +01:00
Jocelyn Fiat
962154fc81
Eventually fixing trouble with c_strlen being over capacity
...
(added this for testing, and while waiting a fix from EiffelcURL)
2012-02-01 11:57:42 +01:00
Jocelyn Fiat
645b35590b
Improved redirect_now_custom to allow custom status code, custom header, and custom content
2012-02-01 10:57:52 +01:00
Jocelyn Fiat
a1354136fa
Fixed usage of lst[] in web form, now we are url-decoding the name because the [] could escaped...
...
Fixed bad code for assertion related to variable url-encoded name
2012-01-31 17:57:59 +01:00
Jocelyn Fiat
945ef79857
added REQUEST_HANDLER_CONTEXT.string_array_path_parameter (...) to help user handling list/array parameters
...
fixed postcondition WSF_REQUEST.set_meta_string_variable ...
2012-01-31 12:12:41 +01:00
Jocelyn Fiat
2c4df29877
Make sure to return a response
...
Added precondition to check URI_TEMPLATE is valid
2012-01-25 16:27:22 +01:00
Jocelyn Fiat
e6687c7791
Fixed wrong assertion, status_committed instead of status_set
2012-01-24 16:47:12 +01:00
Jocelyn Fiat
754d3f670c
Fixed issue with WSF_FILE_RESPONSE not setting the status code
...
Added Last-Modified
2012-01-23 18:20:25 +01:00
Jocelyn Fiat
8e420de8ec
Fixed wrong code for postcondition in unset_orig_path_info
2012-01-23 15:32:11 +01:00
Jocelyn Fiat
6dc1c0d2b0
Removed most of the "retry" in rescue clauses, since it was hidding critical issue.
...
This should be the choice of the application to "retry" on exception, otherwise let the framework handle this in the lower part.
Better handling of response termination (alias commit)
Added the notion of "status_committed"
2012-01-23 15:31:34 +01:00
Jocelyn Fiat
80d68699b1
added "conversion" to ease the use of HTTP_HEADER
2012-01-23 15:28:06 +01:00
Jocelyn Fiat
fcdf4e456e
fixed compilation (was not up to date with tests.ecf)
2012-01-20 20:04:56 +01:00
Jocelyn Fiat
c92c2a91b4
Corrected remaining issue related to recent addition of REQUEST_ROUTER.make_with_base_url
...
And applied removal of format_name and format_id, and replaced by accepted_format_name, ...
2012-01-20 18:55:03 +01:00
Jocelyn Fiat
da9fa4ecc2
Do not add again ctx.headers, since it is already "imported" during the creation of Current request
...
(see HTTP_CLIENT_REQUEST.make)
2012-01-20 15:37:04 +01:00
Jocelyn Fiat
abdd68863d
Removed any "format" related query from router lib, this is too application specific to be there.
...
Better handling of base_url for REQUEST_ROUTER
2012-01-20 15:35:03 +01:00
Jocelyn Fiat
83a8ad3879
separate library .ecf and tests .ecf
...
merged tests .ecf for draft 05 and current implementation
2012-01-19 14:34:04 +01:00
Jocelyn Fiat
1b55b09b64
Fixed WSF_REQUEST.script_url (..) for clean path
...
Added related autotests
2012-01-19 10:25:53 +01:00
Jocelyn Fiat
4cf3393a13
Don't forget to put Content-Length: 0 for redirect without any content
2012-01-17 17:37:26 +01:00
Jocelyn Fiat
4486df14cc
export handler from REQUEST_ROUTER
2012-01-17 07:51:26 -08:00
Jocelyn Fiat
60574ee85f
REQUEST_ROUTER now inherit from ITERABLE [..]
2012-01-17 16:35:52 +01:00
Jocelyn Fiat
7a6c51e47e
Send the Status code, as an header line Status: code reason
2012-01-17 16:34:48 +01:00
Jocelyn Fiat
d8c420c4b7
use READABLE_STRING_8 instead of STRING_8
2012-01-17 16:33:40 +01:00
Jocelyn Fiat
790aa40591
According to http://www.fastcgi.com/docs/faq.html#httpstatus
...
send the Status code, as an header line Status: code reason
2012-01-17 13:49:04 +01:00
Jocelyn Fiat
e506397406
Do not send any Status line back to the FastCGI client
2012-01-16 13:49:38 +01:00