# HTTP 505 Error

**URL:** <https://www.ruby-forum.com/t/http-505-error/185669>\
**Category:** Rails\
**Created:** [March 24, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/http-505-error/185669 "2010-03-24T13:49:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [March 24, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/http-505-error/185669/1 "2010-03-24T13:49:26Z")

</div>

I am trying to make a GET request to the below listed url which should  
return an XML. When I put the compete url in my browser, I get the  
intended XML.

[http://axml.travelnow.com/external/xmlinterface.jsp?cid=1&resType=air&intfc=ws&xml=](http://axml.travelnow.com/external/xmlinterface.jsp?cid=1&resType=air&intfc=ws&xml=)MCI\</  
originCityCode\>ATL\</  
destinationCityCode\>11/19/2005 11:00 AM\</  
departureDateTime\>11/21/2005 10:00 AM\</  
returnDateTime\>YR\</  
tripType\> 1\</  
Passengers\>

However, when I try to make a request with Net:HTTP I get a  
HTTPNotValidError.

Here is what I have:

url = URI.parse(‘[http://axml.travelnow.com](http://axml.travelnow.com)’)  
req = Net::HTTP::Get.new(“/external/xmlinterface.jsp?  
cid=1&resType=air&intfc=ws&xml=MCI\</  
originCityCode\>ATL\</  
destinationCityCode\>11/19/2005 11:00 AM\</  
departureDateTime\>11/21/2005 10:00 AM\</  
returnDateTime\>YR\</  
tripType\> 1\</  
Passengers\>\</AirSessionRequest”)  
res = Net::HTTP.start(url.host, url.port) {|http|  
http.request(req)  
}  
puts res  
puts res.body

---

<div class="post-metadata">

**Author:** ![tashfeen.ekram](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3ab097/32.png) [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Post date:** [March 24, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/http-505-error/185669/2 "2010-03-24T13:51:47Z")

</div>

There error I get is:

HTTPVersionNotSupported # 505
