2008-12-10 05:42:49 +01:00
|
|
|
/*
|
2010-02-28 01:08:10 +01:00
|
|
|
* This file is a part of Winix
|
2014-10-04 20:04:03 +02:00
|
|
|
* and is distributed under the 2-Clause BSD licence.
|
|
|
|
* Author: Tomasz Sowa <t.sowa@ttmath.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2015-11-15 23:23:36 +01:00
|
|
|
* Copyright (c) 2008-2015, Tomasz Sowa
|
2008-12-10 05:42:49 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
2014-10-04 20:04:03 +02:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain the above copyright notice,
|
|
|
|
* this list of conditions and the following disclaimer.
|
|
|
|
*
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
|
|
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
2008-12-10 05:42:49 +01:00
|
|
|
*/
|
|
|
|
|
2011-01-23 15:15:30 +01:00
|
|
|
#ifndef headerfile_winix_core_request
|
|
|
|
#define headerfile_winix_core_request
|
2008-12-10 05:42:49 +01:00
|
|
|
|
|
|
|
#include <fcgiapp.h>
|
|
|
|
#include <sstream>
|
|
|
|
#include <vector>
|
|
|
|
#include "requesttypes.h"
|
|
|
|
#include "item.h"
|
|
|
|
#include "error.h"
|
2010-08-10 18:12:50 +02:00
|
|
|
#include "config.h"
|
2010-11-21 01:19:17 +01:00
|
|
|
#include "textstream.h"
|
added: uptime winix function prints how many sessions there are
changed: functions for text/numbers conversions
int Toi(const std::string & str, int base = 10);
int Toi(const std::wstring & str, int base = 10);
int Toi(const char * str, int base = 10);
int Toi(const wchar_t * str, int base = 10);
long Tol(const std::string & str, int base = 10);
long Tol(const std::wstring & str, int base = 10);
long Tol(const char * str, int base = 10);
long Tol(const wchar_t * str, int base = 10);
template<class CharType>
bool Toa(unsigned long value, CharType * buffer, size_t buf_len, int base = 10);
template<class CharType>
bool Toa(long value, CharType * buffer, size_t buf_len, int base = 10);
template<class CharType>
bool Toa(unsigned int value, CharType * buffer, size_t buf_len, int base = 10);
template<class CharType>
bool Toa(int value, CharType * buffer, size_t buf_len, int base = 10);
const wchar_t * Toa(unsigned int value, int base = 10);
const wchar_t * Toa(unsigned long value, int base = 10);
const wchar_t * Toa(int value, int base = 10);
const wchar_t * Toa(long value, int base = 10);
void Toa(int value, std::string & res, int base = 10, bool clear = true);
void Toa(long value, std::string & res, int base = 10, bool clear = true);
void Toa(int value, std::wstring & res, int base = 10, bool clear = true);
void Toa(long value, std::wstring & res, int base = 10, bool clear = true);
added: HtmlTextStream class (files htmltextstream.cpp htmltextstream.h in templates)
this is a special stream for automatically escaping html tags
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@682 e52654a7-88a9-db11-a3e9-0013d4bc506e
2010-11-25 02:34:46 +01:00
|
|
|
#include "templates/htmltextstream.h"
|
2012-05-19 17:14:35 +02:00
|
|
|
#include "date/date.h"
|
2012-08-08 18:04:48 +02:00
|
|
|
#include "space/space.h"
|
|
|
|
#include "space/spacetojson.h"
|
2013-11-29 22:39:23 +01:00
|
|
|
#include "textstream/textstream.h"
|
2015-11-15 23:23:36 +01:00
|
|
|
#include "outstreams.h"
|
2012-08-08 18:04:48 +02:00
|
|
|
|
2009-04-21 22:50:55 +02:00
|
|
|
|
2014-02-12 17:30:49 +01:00
|
|
|
namespace Winix
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-30 20:42:50 +02:00
|
|
|
|
2010-08-10 18:12:50 +02:00
|
|
|
class FunctionBase;
|
|
|
|
|
|
|
|
|
2010-08-12 21:10:12 +02:00
|
|
|
|
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
struct Request
|
|
|
|
{
|
2013-11-29 22:39:23 +01:00
|
|
|
/*
|
|
|
|
request id
|
|
|
|
is incremented for each request and is never 0
|
|
|
|
(from -1 will be incremented to one)
|
|
|
|
it's used for some optimizations e.g. in templates
|
|
|
|
*/
|
2008-12-30 02:05:03 +01:00
|
|
|
size_t id;
|
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
|
2013-11-29 22:39:23 +01:00
|
|
|
/*
|
|
|
|
request start time
|
|
|
|
Time() methods are very slow so it is better to directly use those two values
|
|
|
|
they are set when a request starts
|
|
|
|
*/
|
|
|
|
time_t start_time;
|
|
|
|
PT::Date start_date;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* variables representing input from client's browser
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
the HTTP method
|
|
|
|
!! IMPROVE ME add the rest methods here
|
|
|
|
*/
|
|
|
|
enum Method { get, post, head, unknown_method } method;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
subdomain
|
|
|
|
subdomain = HTTP_HOST environment variable - config->base_url
|
|
|
|
*/
|
|
|
|
std::wstring subdomain;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
raw parameters
|
|
|
|
!! CHECK ME may post_tab and cookie_tab should be changed to PT::Space now?
|
|
|
|
or may change the name to cookie_in? or in_cookie?
|
|
|
|
*/
|
|
|
|
PostTab post_tab;
|
|
|
|
PostFileTab post_file_tab;
|
|
|
|
CookieTab cookie_tab;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
html anchor (those part of URI after '#' character)
|
|
|
|
*/
|
|
|
|
std::wstring anchor;
|
|
|
|
|
|
|
|
|
|
|
|
// environment variables
|
2014-10-09 22:44:56 +02:00
|
|
|
std::wstring env_request_method;
|
|
|
|
std::wstring env_request_uri;
|
|
|
|
std::wstring env_http_cookie;
|
|
|
|
std::wstring env_remote_addr;
|
|
|
|
std::wstring env_http_host;
|
|
|
|
std::wstring env_http_user_agent;
|
|
|
|
std::wstring env_http_accept_encoding;
|
|
|
|
std::wstring env_fcgi_role;
|
|
|
|
std::wstring env_content_type;
|
|
|
|
std::wstring env_https;
|
2008-12-10 05:42:49 +01:00
|
|
|
|
2013-11-29 22:39:23 +01:00
|
|
|
// current IP address of the remote host (read from REMOTE_ADDR environment variable)
|
|
|
|
// (at the moment only IPv4 are supported)
|
|
|
|
int ip;
|
|
|
|
|
|
|
|
// true if the browser is Microsoft Internet Explorer
|
|
|
|
bool browser_msie;
|
|
|
|
|
|
|
|
// true if the browser is Konqueror
|
|
|
|
bool browser_konqueror;
|
|
|
|
|
|
|
|
// true if we are using an encrypted connection (SSL)
|
|
|
|
bool using_ssl;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
request input variables representing the winix filesystem
|
|
|
|
*/
|
|
|
|
|
|
|
|
// current directory
|
|
|
|
std::vector<Item*> dir_tab;
|
|
|
|
|
|
|
|
// true if a file exists
|
|
|
|
bool is_item;
|
|
|
|
|
|
|
|
// current file (valid if is_item is true)
|
|
|
|
Item item;
|
|
|
|
|
|
|
|
// current winix function
|
|
|
|
// null if there is no a function
|
|
|
|
FunctionBase * function;
|
|
|
|
|
|
|
|
// parameters (name:value)
|
|
|
|
ParamTab param_tab;
|
|
|
|
|
|
|
|
// this is a pointer either to the item (if exists) or to the last directory
|
|
|
|
Item * last_item;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* variables for generating output to the client's browser
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// request status
|
|
|
|
// !! CHANGE ME it'll be better to use ordinary http result codes
|
|
|
|
Error status;
|
|
|
|
|
|
|
|
// if not empty means an address for redirecting to
|
|
|
|
// it should be url-encoded
|
|
|
|
std::wstring redirect_to;
|
|
|
|
|
|
|
|
// a redirect type
|
|
|
|
// following redirect types are supported:
|
|
|
|
// 300 Multiple Choices
|
|
|
|
// 301 Moved Permanently
|
|
|
|
// 302 Found
|
|
|
|
// 303 See Other (default)
|
|
|
|
// 307 Temporary Redirect
|
|
|
|
int redirect_type;
|
|
|
|
|
|
|
|
// send header X-LIGHTTPD-send-file with path to a file
|
|
|
|
std::wstring x_sendfile;
|
|
|
|
|
|
|
|
// send as attachment (causes generating header: content-disposition: attachment)
|
|
|
|
bool send_as_attachment;
|
|
|
|
|
|
|
|
// headers send to the client (without cookies)
|
|
|
|
PT::Space out_headers;
|
|
|
|
|
|
|
|
// cookies send to the client
|
|
|
|
// a value can be either a cookie value or the whole cookie string (with domain, date etc)
|
|
|
|
PT::Space out_cookies;
|
2012-09-11 07:19:45 +02:00
|
|
|
|
2013-11-14 21:59:23 +01:00
|
|
|
// winix can return either a text answer or a binary answer
|
|
|
|
// if send_bin_stream is true then the binary answer is sent (out_bin_stream)
|
|
|
|
// or if send_bin_stream is false then the text answer is sent
|
|
|
|
// default: false
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// winix answer send to the client's browser
|
|
|
|
// |
|
|
|
|
// |
|
|
|
|
// depending on send_bin_stream
|
2013-12-04 02:21:57 +01:00
|
|
|
// (if false) ------------------------------------------------- (if true)
|
2013-11-14 21:59:23 +01:00
|
|
|
// | |
|
|
|
|
// text answer binary answer
|
|
|
|
// | |
|
|
|
|
// depending on return_json sending out_bin_stream
|
2013-12-04 02:21:57 +01:00
|
|
|
// (if false) ------------------------------------ (if true)
|
2013-11-14 21:59:23 +01:00
|
|
|
// | |
|
|
|
|
// normal request ajax request
|
|
|
|
// | |
|
2015-11-15 23:23:36 +01:00
|
|
|
// sending out_main_stream |
|
2013-12-04 02:21:57 +01:00
|
|
|
// |
|
|
|
|
// |
|
|
|
|
// depending on return_info_only
|
2015-11-15 23:23:36 +01:00
|
|
|
// (if false) ------------------------------------------------------------- (if true)
|
|
|
|
// | |
|
|
|
|
// generating JSON object from: generating JSON object only from info
|
|
|
|
// out_streams and info, e.g.: e.g.:
|
|
|
|
// { { info object serialized here }
|
|
|
|
// "out": { out_streams serialized here e.g.:
|
|
|
|
// "stream_name_1": "some html content",
|
|
|
|
// "stream_name_2": "some other html content"
|
|
|
|
// },
|
|
|
|
// "info": { info object serialized here }
|
|
|
|
// }
|
2013-11-14 21:59:23 +01:00
|
|
|
//
|
|
|
|
//
|
|
|
|
bool send_bin_stream;
|
|
|
|
|
|
|
|
// binary page sent to the client if send_bin_stream is true
|
|
|
|
BinaryPage out_bin_stream;
|
|
|
|
|
|
|
|
// when returning the text answer we can either return the whole html page (normal requests)
|
|
|
|
// or a JSON object (for requests generated from AJAX)
|
2015-11-15 23:23:36 +01:00
|
|
|
// if return_json is false then we return the whole html page (which is in out_main_stream)
|
2013-11-14 21:59:23 +01:00
|
|
|
// if return_json is true we are creating an JSON object from out_streams
|
2015-11-15 23:23:36 +01:00
|
|
|
// and from info space (see above picture)
|
2013-11-14 21:59:23 +01:00
|
|
|
// (or just only from info if return_info_only is true)
|
|
|
|
// default: false
|
|
|
|
// return_json is set to true by App at the beginning of a request
|
|
|
|
// if reqtype:json parameter is present (in the url)
|
|
|
|
// note: return_json is only valid if send_bin_stream is false
|
|
|
|
bool return_json;
|
|
|
|
|
2015-11-15 23:23:36 +01:00
|
|
|
// main text output stream where the html otput is generated from ezc templates
|
|
|
|
// here the whole html page (with doctype, head, body) is generated
|
|
|
|
HtmlTextStream out_main_stream;
|
|
|
|
|
|
|
|
// text output streams used in ajax requests (send in JSON format to the client)
|
|
|
|
// in ezc templates you can use [ezc out "stream_name"] keyword
|
|
|
|
// to switch between streams
|
|
|
|
Ezc::OutStreams<HtmlTextStream> out_streams;
|
2013-11-14 21:59:23 +01:00
|
|
|
|
|
|
|
// if true the JSON object is generated only from info (out_streams are not used)
|
|
|
|
// default: false
|
|
|
|
bool return_info_only;
|
|
|
|
|
|
|
|
// additional info added when sending the JSON answer
|
|
|
|
PT::Space info;
|
|
|
|
|
|
|
|
// info serializer
|
|
|
|
// if not set then the json_generic_serializer from App will be used
|
|
|
|
// default: null (json_generic_serializer used)
|
|
|
|
PT::SpaceToJSON * info_serializer;
|
|
|
|
|
2012-09-11 07:19:45 +02:00
|
|
|
|
|
|
|
|
2013-12-04 02:21:57 +01:00
|
|
|
|
|
|
|
// if set to true then the standard template system will not be used
|
2011-06-24 22:53:21 +02:00
|
|
|
// default: false
|
|
|
|
bool page_generated;
|
|
|
|
|
2015-11-15 23:23:36 +01:00
|
|
|
// whether or not the main html stream should be filtered by our html filter
|
|
|
|
bool out_main_stream_use_html_filter;
|
2013-12-04 02:21:57 +01:00
|
|
|
|
2015-11-15 23:23:36 +01:00
|
|
|
// whether or not the ajax streams should be filtered by our html filter
|
|
|
|
// this filter is only aplied to streams in "out" space, "info" space is not touched
|
|
|
|
bool out_streams_use_html_filter;
|
2013-12-04 02:21:57 +01:00
|
|
|
|
2015-11-15 23:23:36 +01:00
|
|
|
|
2013-11-29 22:39:23 +01:00
|
|
|
// if this variable is true then winix always return 200 OK header
|
|
|
|
// when the status would be 404 (not found) or 403 (permission denied)
|
|
|
|
// default: false
|
|
|
|
bool use_200_status_for_not_found_and_permission_denied;
|
2012-10-27 09:44:26 +02:00
|
|
|
|
2013-11-29 22:39:23 +01:00
|
|
|
// options used by ezc generators
|
|
|
|
bool gen_trim_white;
|
|
|
|
bool gen_skip_new_line;
|
|
|
|
bool gen_use_special_chars;
|
2009-12-19 20:46:15 +01:00
|
|
|
|
2011-09-07 00:46:15 +02:00
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
|
2008-12-30 02:05:03 +01:00
|
|
|
|
2013-11-29 22:39:23 +01:00
|
|
|
/*
|
|
|
|
additional variables used for common uses
|
|
|
|
*/
|
2010-08-10 22:43:38 +02:00
|
|
|
|
|
|
|
// usually items in the current directory (depends on the function)
|
|
|
|
std::vector<Item> item_tab;
|
2010-01-25 05:52:17 +01:00
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
|
2011-07-07 19:02:14 +02:00
|
|
|
|
2010-02-19 00:30:22 +01:00
|
|
|
|
|
|
|
|
2010-08-12 21:10:12 +02:00
|
|
|
|
2012-05-19 17:14:35 +02:00
|
|
|
|
2012-04-22 20:23:44 +02:00
|
|
|
|
2012-08-26 21:53:47 +02:00
|
|
|
|
2012-04-22 15:30:07 +02:00
|
|
|
|
2010-08-12 21:10:12 +02:00
|
|
|
Request();
|
|
|
|
void SetConfig(Config * pconfig);
|
2013-12-23 04:29:33 +01:00
|
|
|
|
2012-02-17 06:19:24 +01:00
|
|
|
void RequestStarts();
|
2010-08-12 21:10:12 +02:00
|
|
|
void Clear();
|
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
|
|
|
|
|
2010-11-21 01:19:17 +01:00
|
|
|
bool IsParam(const wchar_t * param_name);
|
|
|
|
bool IsParam(const std::wstring & param_name);
|
2011-11-25 05:51:55 +01:00
|
|
|
const std::wstring & ParamValue(const wchar_t * param_name); // returns an empty string if there is no such a parameter
|
|
|
|
const std::wstring & ParamValue(const std::wstring & param_name); // returns an empty string if there is no such a parameter
|
2008-12-30 02:05:03 +01:00
|
|
|
|
2010-11-21 01:19:17 +01:00
|
|
|
bool IsPostVar(const wchar_t * var);
|
2011-11-25 05:51:55 +01:00
|
|
|
bool IsPostVar(const std::wstring & var);
|
|
|
|
const std::wstring & PostVar(const wchar_t * var); // returns an empty string if there is no such a parameter
|
|
|
|
const std::wstring & PostVar(const std::wstring & var); // returns an empty string if there is no such a parameter
|
2010-11-21 01:19:17 +01:00
|
|
|
bool PostVar(const wchar_t * var, std::wstring & result);
|
2011-11-25 05:51:55 +01:00
|
|
|
bool PostVar(const std::wstring & var, std::wstring & result);
|
2010-11-21 01:19:17 +01:00
|
|
|
std::wstring * PostVarp(const wchar_t * var);
|
2012-06-04 19:51:43 +02:00
|
|
|
std::wstring * PostVarp(const std::wstring & var);
|
2010-09-30 22:58:20 +02:00
|
|
|
|
2009-12-09 01:42:40 +01:00
|
|
|
bool AllPostVarEmpty(); // returning true if all post vars are empty
|
2008-12-10 05:42:49 +01:00
|
|
|
|
2013-11-29 22:39:23 +01:00
|
|
|
|
|
|
|
// setting a cookie
|
|
|
|
// name - cookie name (either const wchar_t, or std::wstring or PT::WTextStream)
|
|
|
|
// value - cookie value (can be everything which can be put to PT::WTextStream stream)
|
|
|
|
// the return std::wstring reference is a reference to the cookie inserted value (in out_cookies structure)
|
|
|
|
template<typename NameType, typename ValueType>
|
|
|
|
std::wstring & AddCookie(const NameType & name, const ValueType & value, PT::Date * expires = 0);
|
|
|
|
|
|
|
|
template<typename NameType, typename ValueType>
|
|
|
|
std::wstring & AddCookie(const NameType & name, const ValueType & value, PT::Date & expires);
|
|
|
|
|
|
|
|
|
2010-08-12 21:10:12 +02:00
|
|
|
|
2010-01-06 20:17:53 +01:00
|
|
|
|
2008-12-12 04:11:29 +01:00
|
|
|
private:
|
2009-10-08 19:59:10 +02:00
|
|
|
|
2010-08-10 18:12:50 +02:00
|
|
|
Config * config;
|
|
|
|
|
2010-08-12 21:10:12 +02:00
|
|
|
// used in ParamValue() and PostVar() when there is no such a param
|
2010-11-21 01:19:17 +01:00
|
|
|
const std::wstring str_empty;
|
2012-08-08 18:04:48 +02:00
|
|
|
|
2013-11-14 21:59:23 +01:00
|
|
|
void ClearOutputStreams();
|
2012-08-08 18:04:48 +02:00
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-09 22:44:56 +02:00
|
|
|
|
2013-11-29 22:39:23 +01:00
|
|
|
template<typename NameType, typename ValueType>
|
|
|
|
std::wstring & Request::AddCookie(const NameType & name, const ValueType & value, PT::Date * expires)
|
|
|
|
{
|
|
|
|
PT::WTextStream cookie;
|
|
|
|
|
|
|
|
cookie << value;
|
|
|
|
|
|
|
|
if( cookie.empty() )
|
|
|
|
cookie << L"\"\""; // cookie empty value
|
|
|
|
|
|
|
|
if( expires )
|
|
|
|
cookie << L"; expires=" << DateToStrCookie(*expires) << L" GMT";
|
|
|
|
|
|
|
|
cookie << L"; path=/; domain=" << config->base_url;
|
2010-08-10 18:12:50 +02:00
|
|
|
|
2013-11-29 22:39:23 +01:00
|
|
|
/*
|
|
|
|
!! IMPROVE ME add an option to the config
|
|
|
|
|
|
|
|
don't use '; secure' flag if you are using both sites (with SSL
|
|
|
|
and without SSL) -- with secure flag the cookie is sent only through
|
|
|
|
SSL and if you accidentally open a new window without SSL (http://)
|
|
|
|
then winix will create a new session for you and the previous session (https://)
|
|
|
|
will be lost (the session cookie will be overwritten in the client's browser)
|
|
|
|
*/
|
|
|
|
|
|
|
|
return out_cookies.Add(name, cookie);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
template<typename NameType, typename ValueType>
|
|
|
|
std::wstring & Request::AddCookie(const NameType & name, const ValueType & value, PT::Date & expires)
|
|
|
|
{
|
|
|
|
return AddCookie(name, value, &expires);
|
|
|
|
}
|
2008-12-10 05:42:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-12 17:30:49 +01:00
|
|
|
|
|
|
|
} // namespace Winix
|
|
|
|
|
2008-12-10 05:42:49 +01:00
|
|
|
#endif
|
2013-11-29 22:39:23 +01:00
|
|
|
|