open-uri
OpenURI - 500 Internal Server Error on XML feed
I\'m trying to read Stanford ecorner XML: open(\"http://ecorner.stanford.edu/RecentlyAdded.xml\") but am running into the following error message:[详细]
2023-03-03 04:14 分类:问答open-uri returning ASCII-8BIT from webpage encoded in iso-8859
I am using open-uri to read a webpage which claims to be encoded in iso-8859-1. When I read the contents of the page, open-uri returns a string encoded in ASCII-8BIT.[详细]
2023-02-26 11:04 分类:问答How can I read a website as a different IP address?
I am using Nokogiri to screen scrape a few websi开发者_如何学JAVAtes. My website is hosted on US servers, and so when it fetches the website, the website responses as if the user was a US user. I need[详细]
2023-02-19 16:50 分类:问答Rails - How to send an image from a controller
in my rails app, I need to pass back a image. I have a 1x1.gif tracking pixel in my route as follows: match \"/_ctrack.gif\" => \"email_tracking_pixels#my_method\"[详细]
2023-02-15 16:00 分类:问答What is returned by Open::URI.open?
I cannot tell from the rdoc for Open::URI what is returned when I do: result = open(url) The URL returns XML, but how do I see/parse the XML?开发者_Go百科open returns an IO object.You can do someth[详细]
2023-02-09 16:42 分类:问答Advice on HTTPS connections using Ruby on Rails
Since I am developing a \"secure\" OAuth protocol for my RoR3 apps, I need to send protected information over the internet, so I need to use HTTPS connections (SSL/TSL). I read How to Cure Net::HTTP’[详细]
2023-02-04 09:31 分类:问答Why does using OpenURI to download a file result in a partial file?
I\'m trying to use OpenURI to download a file from S3, and then save it locally so I can send the file as an attachment with ActionMailer.[详细]
2023-01-28 07:10 分类:问答open("http://www.google.com') failed but wget works
open failed: irb(main):001:0> require \'open-uri\' => true irb(main):002:0> open(\"http://www.google.com\")[详细]
2023-01-25 04:52 分类:问答Using OpenUri, how can I get the contents of a redirecting page?
I want to get data from this page: http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=0656887000494793[详细]
2022-12-29 04:12 分类:问答Opening a WIKI URL with a comma using `open-uri`
I am running in to OpenURI::HTTPError: 403 Forbidden error when I try to open a URL with a comma (OR other special characters like .).[详细]
2022-12-22 01:50 分类:问答