Closed justb4 closed 9 years ago
I found that the plugin is sending Content-Type: x-www-form-urlencoded for the GetObservation POST request. My SOS gives an error response. If I change this to Content-Type: application/xml in sos_client_dialog.py executeRequest like this:
Content-Type: x-www-form-urlencoded
GetObservation
Content-Type: application/xml
sos_client_dialog.py executeRequest
def executeRequest (self, url, callback, post = None): self.messageBar.clearWidgets() self.cmbOfferings.setEnabled (False) self.tabWidget.setEnabled (False) if post: request = QNetworkRequest(url) request.setRawHeader('Content-Type', 'application/xml') self.reply = QgsNetworkAccessManager.instance().post(request,post) else: self.reply = QgsNetworkAccessManager.instance().get(QNetworkRequest(url))
then POST requests work ok.
Will be fixed on next release.
I found that the plugin is sending
Content-Type: x-www-form-urlencoded
for theGetObservation
POST request. My SOS gives an error response. If I change this toContent-Type: application/xml
insos_client_dialog.py executeRequest
like this:then POST requests work ok.