TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
httpget.h
Go to the documentation of this file.
1 /*
2  httpget.h
3 
4  gSOAP HTTP GET plugin.
5 
6  See httpget.c for usage instructions.
7 
8 gSOAP XML Web services tools
9 Copyright (C) 2000-2008, Robert van Engelen, Genivia Inc., All Rights Reserved.
10 This part of the software is released under ONE of the following licenses:
11 GPL, the gSOAP public license, OR Genivia's license for commercial use.
12 --------------------------------------------------------------------------------
13 gSOAP public license.
14 
15 The contents of this file are subject to the gSOAP Public License Version 1.3
16 (the "License"); you may not use this file except in compliance with the
17 License. You may obtain a copy of the License at
18 http://www.cs.fsu.edu/~engelen/soaplicense.html
19 Software distributed under the License is distributed on an "AS IS" basis,
20 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
21 for the specific language governing rights and limitations under the License.
22 
23 The Initial Developer of the Original Code is Robert A. van Engelen.
24 Copyright (C) 2000-2008 Robert A. van Engelen, Genivia inc. All Rights Reserved.
25 --------------------------------------------------------------------------------
26 GPL license.
27 
28 This program is free software; you can redistribute it and/or modify it under
29 the terms of the GNU General Public License as published by the Free Software
30 Foundation; either version 2 of the License, or (at your option) any later
31 version.
32 
33 This program is distributed in the hope that it will be useful, but WITHOUT ANY
34 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
35 PARTICULAR PURPOSE. See the GNU General Public License for more details.
36 
37 You should have received a copy of the GNU General Public License along with
38 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
39 Place, Suite 330, Boston, MA 02111-1307 USA
40 
41 Author contact information:
42 [email protected] / [email protected]
43 
44 This program is released under the GPL with the additional exemption that
45 compiling, linking, and/or using OpenSSL is allowed.
46 --------------------------------------------------------------------------------
47 */
48 
49 #ifndef HTTPGET_H
50 #define HTTPGET_H
51 
52 #include "stdsoap2.h"
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 #define HTTP_GET_ID "HTTP-GET-1.1" /* plugin identification */
59 
60 extern const char http_get_id[];
61 
62 /* This is the local plugin data shared among all copies of the soap struct: */
64 { int (*fparse)(struct soap*); /* to save and call the internal HTTP header parser */
65  int (*fget)(struct soap*); /* user-defined server-side HTTP GET handler */
66  size_t stat_get; /* HTTP GET usage statistics */
67  size_t stat_post; /* HTTP POST usage statistics */
68  size_t stat_fail; /* HTTP failure statistics */
69  size_t min[60]; /* Hits by the minute */
70  size_t hour[24]; /* Hits by the hour */
71  size_t day[366]; /* Hits by day */
72 };
73 
74 int http_get(struct soap*, struct soap_plugin*, void*);
75 int soap_get_connect(struct soap*, const char*, const char*);
76 
77 char *query(struct soap*);
78 char *query_key(struct soap*, char**);
79 char *query_val(struct soap*, char**);
80 
81 int soap_encode_string(const char*, char*, size_t);
82 const char* soap_decode_string(char*, size_t, const char*);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif
size_t stat_post
Definition: httpget.h:67
const char http_get_id[]
Definition: httpget.cpp:148
int http_get(struct soap *, struct soap_plugin *, void *)
Definition: httpget.cpp:154
Definition: httpget.h:63
Definition: stdsoap2.h:1933
int soap_get_connect(struct soap *, const char *, const char *)
Definition: httpget.cpp:240
const char * soap_decode_string(char *, size_t, const char *)
Definition: httpget.cpp:294
int(* fget)(struct soap *)
Definition: httpget.h:65
Definition: stdsoap2.h:2250
int soap_encode_string(const char *, char *, size_t)
Definition: httpget.cpp:266
char * query(struct soap *)
Definition: httpget.cpp:244
size_t day[366]
Definition: httpget.h:71
size_t stat_fail
Definition: httpget.h:68
size_t min[60]
Definition: httpget.h:69
int(* fparse)(struct soap *)
Definition: httpget.h:64
char * query_key(struct soap *, char **)
Definition: httpget.cpp:248
size_t hour[24]
Definition: httpget.h:70
char * query_val(struct soap *, char **)
Definition: httpget.cpp:257
size_t stat_get
Definition: httpget.h:66