56fa773b30
If PATH_INFO is "/", the percent encoded path info is also "/". No need for complex computation.
...
Note this fixes an issue with libfcgi app not hosted as root url such as "/sub/app.fcgi" on (old) IIS server.
2017-01-10 11:59:48 +01:00
ee9746449c
If PATH_INFO is empty, the percent encoded path info is also empty. No need for complex computation.
...
Note this fixes an issue with libfcgi app not hosted as root url such as "/sub/app.fcgi".
2017-01-10 00:16:50 +01:00
c34f89df9b
Added connection header related functions.
...
- WSF_REQUEST.is_keep_alive_http_connection: BOOLEAN
- HTTP_HEADER_MODIFIER.put_connection_keep_alive
- HTTP_HEADER_MODIFIER.put_connection_close
In Standalone request handler code, better detection of Connection: keep-alive header.
2016-10-18 13:22:32 +02:00
29590b1c0d
Fixed potential issue related to PATH_INFO, and percent_encoded_path_info computing , when script name is in different path.
2016-10-12 11:19:23 +02:00
8b172b5d33
Revisited WSF_REQUEST.read_input_data* functions:
...
- read_input_data_into_file now accepts a IO_MEDIUM argument instead of just FILE.
- cleaned the implementation, and make sure that eventual `raw_input_data` is containing only the raw input data.
2016-08-05 11:32:14 +02: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
50ba8ca703
Fixed various unicode issue related to query and form parameters.
...
(Especially for the multipart/form-data encoding.)
Factorized code related to smart parameters computing (handling list , table, ...) in WSF_VALUE_UTILITIES.
Fixed an issue with percent_encoded_path_info computation from request_uri.
Fixed issue with cookie addition having same cookie name.
Fixed unicode support for uploaded file.
WSF_STRING is reusing WSF_PERCENT_ENCODER.
Use unicode output for WSF_DEBUG_HANDLER.
Code cleaning
2015-11-05 21:32:24 +01:00
f0cba1d536
Fixing script_url' that wrongly used path_info' instead of `percent_encoded_path_info'.
...
(issue on script_url when path info contains unicode character).
2015-08-04 13:21:36 +02:00
64463df552
Fixed various compilation error or warning.
2015-06-05 12:17:53 +02:00
bf0eb9a02d
Added SCOOP support for WSF.
...
WSF_SERVICE is deeply changed, and addition of WSF_EXECUTION.
Todo: code cleaning, removing useless things.
2015-05-06 22:13:22 +02:00
7f27a6c797
First steps to provide a concurrent compliant EWF connector.
2015-05-06 22:13:11 +02:00
0caad2105f
Merge branch 'fix_cgi_value' of github.com:jocelyn/EWF
2014-12-01 15:53:45 +01:00
6d2318ac9b
Fixed issue#157 (WSF_REQUEST.cookies_table does not terminate on cookies without a value, or ending with semi-colon)
...
Added related autotest.
2014-11-24 22:22:12 +01:00
Colin Adams
0f76518b63
Added {WSF_REQUEST}.http_content_encoding
2014-11-19 14:41:50 +00:00
Colin Adams
e1d1d52260
Issue #143
2014-11-17 16:20:28 +00:00
425c976032
Ensure that PATH_INFO and REQUEST_URI are following the CGI specifications:
...
- PATH_INFO is percent decoded but still utf-8 encoded,
this is available via WGI.path_info and WSF_REQUEST.utf_8_path_info.
- Added WSF_REQUEST.percent_encoded_path_info
- and WSF_REQUEST.path_info remains the unicode value for PATH_INFO
Added cgi_variables: WGI_REQUEST_CGI_VARIABLES to have a simple and quick view on CGI variables
Added execution_variables to be able to iterate on execution variables.
Added PERCENT_ENCODER.percent_decoded_utf_8_string
Improved the WSF_DEBUG_HANDLER to provide more information thanks to WSF_DEBUG_INFORMATION object.
2014-06-30 15:13:47 +02:00
93c92c0e38
Avoid decoding PATH_INFO and PATH_TRANSLATED to follow CGI spec.
2014-06-12 19:54:30 +02:00
67641da44d
Improved the uploading of file in regard to temporary filename.
...
Avoid to overwrite the same file for concurrent requests uploading the same filename.
2014-06-11 16:52:22 +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
bb11c24681
check that cookies data is valid string 8 to follow assertions.
2014-05-14 09:53:04 +02:00
322fd80f40
Be sure to reset `is_https' to False, in case the wsf_request object is reused by the implementation.
2014-04-22 10:18:16 +02:00
7168941495
is_https should not rely on REQUEST_SCHEME which may still be "http" for SSL connection.
2014-04-22 10:09:03 +02:00
161607cf8a
better comments.
2014-04-22 10:01:27 +02:00
d45cd032a7
Corrected support of https request in `server_url' (and callers).
...
Added query `is_https' to indicate if the request is done via a https connection or not.
2014-04-22 09:59:18 +02:00
46920fb991
Do not try to read more bytes from input than provided Content-Length value.
2014-04-09 12:27:31 +02:00
c68f6a30e6
Fixed and improved {WSF_REQUEST}.read_input_data_into_file.
...
Now use the content length to get exactly what is expected from the request.
Added check assertion
2013-12-03 10:46:22 +01:00
cf01756c1c
Using the new Content Negotiation library to implement WSF_REQUEST.is_content_type_accepted
2013-10-18 20:46:08 +02:00
9499601daf
Fixing handling of query parameter without value
...
Issue#70 https://github.com/EiffelWebFramework/EWF/issues/70
2013-09-09 15:51:20 +02:00
51730e0877
Merge branch 'handler' of github.com:colin-adams/EWF into colin-adams-handler
2013-08-20 13:17:01 +02:00
Colin Adams
69da6c6d06
Fixes as picked up by code review
2013-08-07 11:03:22 +01:00
Colin Adams
0a9d208529
New routines added to WSF_REQUEST to support ploicy-driven framework
2013-08-06 13:51:43 +01:00
5753af3e43
Cosmetic
...
(removed commented line and fixed bad indentation)
2013-08-05 10:20:41 +02:00
Berend de Boer
4b87a00637
Remove invariant violation.
2013-08-03 20:09:16 +12:00
Colin Adams
e6371c7adc
Merge branch 'master' into handler
...
pull from upstream
2013-07-08 10:17:44 +01:00
23ed157a75
Better use append rather than copy here.
2013-06-18 15:12:53 +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
eab8df7e10
Added WSF_REQUEST.read_input_data_into_file (FILE)
2013-05-28 14:42:11 +02:00
430b34df4f
removed unused local variable
2013-05-15 10:54:07 +02:00
1a518e4d27
use EWF_tmp- prefix for temp uploaded file name.
2013-05-15 10:52:32 +02:00
7d5d55462f
Added a way to customize the place to store temporary uploaded files
2013-05-15 10:31:05 +02:00
654561bcbc
Added WSF_REQUEST.has_execution_variable (a_name): BOOLEAN
...
Since the related value can be Void.
2013-05-14 18:17:48 +02:00
Colin Adams
b4ab4875fc
If-Match implemented in skeleton handler
2013-04-13 14:48:28 +01:00
Colin Adams
92ce80cd63
Fixed bug in 32/8 bit string existance
2013-04-11 10:28:14 +01:00
Colin Adams
31ba0a8828
Handle Precondition Failed for If-Match: * where there is no handler for the resource
2013-04-11 09:23:41 +01:00
Jocelyn Fiat
a8a3f3cb8b
reuse implementation from WSF_REQUEST to get input data for MIME handlers.
2013-03-29 17:50:34 +01:00
Olivier Ligot
1198d6cef4
Merge remote-tracking branch 'upstream/master' into cors
2013-03-15 14:54:43 +01:00
Olivier Ligot
2ff2dbb7c3
Merge branch 'cors' of github.com:oligot/EWF into cors
2013-03-15 14:19:52 +01:00
Jocelyn Fiat
f6e15b6ce1
Made it compilable with 7.1
2013-03-08 22:13:27 +01:00
Jocelyn Fiat
231b263a82
Added `WSF_REQUEST.table_item' to help user get table item with flat name.
...
i.e instead of having item ("foo").item ("bar"), you can do table_item ("foo[bar]")
2013-03-08 15:36:31 +01:00
Jocelyn Fiat
db4f665de1
Added a version of ISE Library URI modified to be compilable with compiler < 7.2
...
Fixed openid when redirection is involved
Fixed Openid Attribute Exchange implementation (AX)
Added WSF_REQUEST.items_as_string_items: ... for convenience, and ease integration with other components (such as the new openid)
2013-02-28 13:10:04 +01:00