diff --git a/hxt-http.cabal b/hxt-http.cabal
--- a/hxt-http.cabal
+++ b/hxt-http.cabal
@@ -1,6 +1,5 @@
--- arch-tag: Haskell XML Toolbox main description file
 Name:           hxt-http
-Version:        9.1.4
+Version:        9.1.5
 Synopsis:       Interface to native Haskell HTTP package HTTP
 Description:    Interface to native Haskell HTTP package HTTP.
                 This package can be used as alternative for the hxt-curl package
@@ -18,6 +17,10 @@
 Build-type:     Simple
 Cabal-version:  >=1.6
 
+flag network-uri
+  description: Get Network.URI from the network-uri package
+  default: False
+
 library
  exposed-modules:
   Text.XML.HXT.HTTP
@@ -36,6 +39,11 @@
  build-depends: base       >= 4    && < 5,
                 parsec     >= 2.1  && < 4,
                 bytestring >= 0.9  && < 1,
-                network    >= 2.1  && < 3,
                 HTTP       >= 4000 && < 5000,
                 hxt        >= 9.1  && < 10
+
+ if flag(network-uri)
+   build-depends: network-uri >= 2.6,
+                  network     >= 2.6
+ else
+   build-depends: network < 2.6
