Skip to content
Permalink
Browse files
Fix for ticket #26
Remove the http://web.address.net bit from the URL before sending the
URL off to the server (some servers don't like it).


git-svn-id: http://svn.osgeo.org/qgis/trunk@5355 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 24, 2006
1 parent a8a1c46 commit 7141779b56ba9f5e05105323342b2496f627ff58
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/providers/wms/qgshttptransaction.cpp
@@ -110,7 +110,13 @@ bool QgsHttpTransaction::getSynchronously(QByteArray &respondedContent, int redi
#endif

httpresponse.truncate(0);
httpid = http->get( httpurl );

// 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.
QString pathAndQuery = httpurl.remove(0,
httpurl.indexOf(qurl.host()) + qurl.host().count());
httpid = http->get( pathAndQuery );

connect(http, SIGNAL( requestStarted ( int ) ),
this, SLOT( dataStarted ( int ) ) );

0 comments on commit 7141779

Please sign in to comment.