# Wget and open-uri

**URL:** <https://www.ruby-forum.com/t/wget-and-open-uri/170579>\
**Category:** Rails\
**Created:** [June 19, 2009, 10:30am UTC](https://www.ruby-forum.com/t/wget-and-open-uri/170579 "2009-06-19T10:30:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyingchen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/258eb7/32.png) [@flyingchen](https://www.ruby-forum.com/u/flyingchen)\
**Post date:** [June 19, 2009, 10:30am UTC](https://www.ruby-forum.com/t/wget-and-open-uri/170579/1 "2009-06-19T10:30:32Z")

</div>

I have a question about open-uri in site of my [kanshipin.net](http://kanshipin.net).  
And my configuration info listed below:  
os:Solar System  
ruby:1.9.1p0  
ror:2.3.2  
when i tried to visit the url of  
[http://api.bd.joy.cn/rest?parameters](http://api.bd.joy.cn/rest?parameters)…,  
the wget can get correct result but the open-uri get http error of 404

The service [api.bd.joy.cn](http://api.bd.joy.cn) used url-rewrite tech to handle request,but  
why wget can  
works well ,open-uri can not.

I need you help !

thanks!
