-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsgetrequesthandler.cpp
44 lines (40 loc) · 1.57 KB
/
qgsgetrequesthandler.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/***************************************************************************
qgsgetrequesthandler.cpp
---------------------
begin : August 2010
copyright : (C) 2010 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qgsgetrequesthandler.h"
#include "qgslogger.h"
#include "qgsremotedatasourcebuilder.h"
#include <QStringList>
#include <QUrl>
#include <stdlib.h>
QgsGetRequestHandler::QgsGetRequestHandler( const bool captureOutput /*= FALSE*/ )
: QgsHttpRequestHandler( captureOutput )
{
}
void QgsGetRequestHandler::parseInput()
{
QString queryString;
const char* qs = getenv( "QUERY_STRING" );
if ( qs )
{
queryString = QString( qs );
QgsDebugMsg( "query string is: " + queryString );
}
else
{
QgsDebugMsg( "error, no query string found" );
return; //no query string? something must be wrong...
}
requestStringToParameterMap( queryString, mParameterMap );
}