# Connect to private network: HTTP.jl vs Requests.jl

**URL:** <https://discourse.julialang.org/t/connect-to-private-network-http-jl-vs-requests-jl/2953>\
**Category:** Web Stack\
**Created:** [March 29, 2017, 5:48pm UTC](https://discourse.julialang.org/t/connect-to-private-network-http-jl-vs-requests-jl/2953 "2017-03-29T17:48:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanfields](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evanfields/32/1744_2.png) [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Post date:** [March 29, 2017, 5:48pm UTC](https://discourse.julialang.org/t/connect-to-private-network-http-jl-vs-requests-jl/2953/1 "2017-03-29T17:48:03Z")

</div>

I’m playing around with a little script that pings a device on my home network at IP address `192.168.0.100`. Using Requests.jl, accessing the device via `Requests.get("http://192.168.0.100")` works fine. But with HTTP.jl, `HTTP.get("http://192.168.0.100")` gives `ERROR: RetryException: # of allowed retries (3) was exceeded when making request`.

I assume this is a simple configuration problem, some setting in the HTTP.jl default client or whatnot, but I’m not sure since I clearly know approximately nothing about the Web.

How should I get this working using HTTP.jl?

Thanks!

---

<div class="post-metadata">

**Author:** ![quinnj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quinnj/32/11_2.png) [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Post date:** [March 29, 2017, 10:05pm UTC](https://discourse.julialang.org/t/connect-to-private-network-http-jl-vs-requests-jl/2953/2 "2017-03-29T22:05:10Z")

</div>

Hey @evanfields!

Mind opening an issue [here](https://github.com/JuliaWeb/HTTP.jl/issues) ? Happy to take a look and try to figure out what’s going on here. At a first glance, there’s no port specified, which may or may not be getting defaulted in HTTP.jl. If not, I can certainly take a look at how we can make sure a default port is provided, but an easy way to check if that is indeed the case would be to try `HTTP.get("http://192.168.0.100:80")`. I think we can also improve the error handling here when throwing a `RetryException` to also include the errors encountered during the tries. (It’s a new feature as of the last release, so still trying to make it as useful as possible).

---

<div class="post-metadata">

**Author:** ![evanfields](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evanfields/32/1744_2.png) [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Post date:** [March 30, 2017, 5:07pm UTC](https://discourse.julialang.org/t/connect-to-private-network-http-jl-vs-requests-jl/2953/3 "2017-03-30T17:07:24Z")

</div>

Okay issue opened, thanks. It wasn’t just a missing port number.
