Skip to content
Permalink
Browse files
Cope with an explicit port in the url.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5356 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 24, 2006
1 parent 92eb209 commit 639f9a06116f98d9b0aba44cd518cfb4b4ccc0a2
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/providers/wms/qgshttptransaction.cpp
@@ -112,10 +112,11 @@ bool QgsHttpTransaction::getSynchronously(QByteArray &respondedContent, int redi
httpresponse.truncate(0);

// Some WMS servers don't like receiving a http request that
// includes the scheme and host (the http://www.address.bit), so
// remove that from the url before executing an http GET.
// includes the scheme, host and port (the
// http://www.address.bit:80), so remove that from the url before
// executing an http GET.
QString pathAndQuery = httpurl.remove(0,
httpurl.indexOf(qurl.host()) + qurl.host().count());
httpurl.indexOf(qurl.path()));
httpid = http->get( pathAndQuery );

connect(http, SIGNAL( requestStarted ( int ) ),

0 comments on commit 639f9a0

Please sign in to comment.