|
@@ -2,19 +2,27 @@
|
2
|
2
|
# Front-end for very primitive remote logging service. Use htlog.cgi
|
3
|
3
|
# as back-end: put it on a HTTP server and provide URL as "path" option
|
4
|
4
|
# when instantiating this class
|
5
|
|
-
|
6
|
|
-# This program is free software: you can redistribute it and/or modify
|
7
|
|
-# it under the terms of the GNU General Public License as published by
|
8
|
|
-# the Free Software Foundation, either version 3 of the License, or
|
9
|
|
-# (at your option) any later version.
|
10
|
|
-
|
11
|
|
-# This program is distributed in the hope that it will be useful,
|
|
5
|
+#
|
|
6
|
+# htlogr.py
|
|
7
|
+#
|
|
8
|
+# Copyright (c) 2013, Alois Mahdal. All rights reserved.
|
|
9
|
+#
|
|
10
|
+# This library is free software; you can redistribute it and/or
|
|
11
|
+# modify it under the terms of the GNU Lesser General Public
|
|
12
|
+# License as published by the Free Software Foundation; either
|
|
13
|
+# version 2.1 of the License, or (at your option) any later version.
|
|
14
|
+#
|
|
15
|
+# This library is distributed in the hope that it will be useful,
|
12
|
16
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
|
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
|
-# GNU General Public License for more details.
|
|
17
|
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
18
|
+# Lesser General Public License for more details.
|
|
19
|
+#
|
|
20
|
+# You should have received a copy of the GNU Lesser General Public
|
|
21
|
+# License along with this library; if not, write to the Free Software
|
|
22
|
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
23
|
+# MA 02110-1301 USA
|
|
24
|
+#
|
15
|
25
|
|
16
|
|
-# You should have received a copy of the GNU General Public License
|
17
|
|
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
26
|
|
19
|
27
|
import httplib
|
20
|
28
|
import urlparse
|