Skip to content

Commit

Permalink
Fix for ticket #26
Browse files Browse the repository at this point in the history
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 7141779
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/providers/wms/qgshttptransaction.cpp
Expand Up @@ -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 ) ) );
Expand Down

0 comments on commit 7141779

Please sign in to comment.