4

I am trying to check if the content type of the resource on my server at s3 has a valid image/jpeg content type. I used the code fromhere but I keep getting the:

 Errno::ECONNREFUSED:
   Connection refused - connect(2) for nil port 80

The link to my s3 image is as:

https://s3-us-west-2.amazonaws.com/cu-prototype-content/course-content/user-profile-images/BillSKenney-128.jpg

Is there something I need to change in my code?

Community
  • 1
  • 1
chipmunk
  • 545
  • 2
  • 9
  • 18
  • I have used the SSL support answer in the link for https support – chipmunk Mar 21 '15 at 18:46
  • Using open-uri worked for me! [From here][1] [1]: http://stackoverflow.com/questions/6400728/using-ruby-what-is-the-most-efficient-way-to-get-the-content-type-of-a-given-ur – chipmunk Mar 21 '15 at 19:41

0 Answers0