similar to: Checking URL with open-uri

Displaying 20 results from an estimated 10000 matches similar to: "Checking URL with open-uri"

2008 Feb 26
1
A weird problem with open-uri
Hi all, I found a very weird problem/bug with open-uri today. In my application I have this line: html_file = open(@story.url) It raises this Exception: OpenURI::HTTPError - 404 Not Found This is the url: http://jwak.net/media/844/ . There''re no problems with it. Moreover if I execute the same thing in the console (script/console) - it just works as expected. I start both - the server
2006 May 23
0
FakeWeb test helper for Net::HTTP / open-uri web requests
Hey All, I''ve posted the first release of FakeWeb, a little library to help with all your http client testing needs. This helper makes it trivial to setup an idempodent environment for you to test any web service requests in your applications. Available on RubyForge, http://rubyforge.org/projects/fakeweb/ == Overview * Force Net::HTTP (and any dependent libraries, e.g. open-uri) to
2013 May 07
2
Net::HTTP
I''m looking at the documentation: http://ruby-doc.org/stdlib-2.0/libdoc/net/http/rdoc/Net/HTTP.html And I notice two uses of Net::HTTP. Both are using GET requests. But what''s the difference? When to use which? Net::HTTP.start(uri.host, uri.port) do |http| request = Net::HTTP::Get.new uri response = http.request request # Net::HTTPResponse object end uri =
2007 Dec 21
4
I need some guidance
I''m building an http communicator class for a web service API wrapper and I''m trying to go through the BDD process in doing so. I''m having a bit of a struggle figuring out how to set up the tests in relation to isolating things appropriately as well as testing behavior vs testing implementation. Specifically, I''m trying to set up a post method on my
2008 Apr 11
2
issues on Net:HTTP
in cotroller: @url=URI.parse(''http://google.com.sg/webhp'') @res = Net::HTTP.get_response(@clarifyurl) in view: <%=@res.body> this page displayed as 301 Moved The document has moved here what''s wrong with my code, I want to get the correct reponse HTML content from google. --~--~---------~--~----~------------~-------~--~----~ You received this message
2009 Mar 04
2
Druid 2.0 released from the Druid Open Source Unified Communications Project
Dear Asterisk users, We would like to announce that Druid, Open Source Unified Communications project has just made a major release: Druid 2.0. It is out!It has a ton of new features and a highly improved interface. Asterisk stability has also been greatly improved. For more info http://forums.voiceroute.org/showthread.php?t=837 Some of the key features - Improved Web GUI, faster and smoother -
2010 Oct 29
2
Video based Asterisk Training
Hi Friends, We have created a video based training for Asterisk in English and Urdu. Please check them and let us know how we can improve them for no-voice users. http://www.youtube.com/watch?v=KXq9g8UiGnQ http://www.youtube.com/watch?v=MID2RvgdD7s http://www.youtube.com/watch?v=_LbDUdAGfSY http://www.youtube.com/watch?v=J9Chkrg7E-M http://www.youtube.com/watch?v=MsC12wc9ZnU
2019 May 08
1
youtube-dl No module named 'pkg_resources'
On Wed, 8 May 2019, Nux! wrote: > How did you install it? Most recently yum reinstall youtube-dl > I'm using their binary and it works great, just tested it. > > https://ytdl-org.github.io/youtube-dl/download.html > ----- Original Message ----- >> From: "Michael Hennebry" <hennebry at web.cs.ndsu.nodak.edu> >> To: "CentOS mailing list"
2009 Sep 05
0
getting an url encoded uri
Hello, I am assembling my first cool algorithms with mechanize and I came across this weird situation. I am trying to get this uri "http://www.relax.si/kratke po?itnice.aspx" like this (with url encoded uri): agent.get("http://relax.si/kratke%20po%u010Ditnice.aspx") and in return I get: WWW::Mechanize::ResponseCodeError: 400 => Net::HTTPBadRequest from
2017 Dec 04
2
samba net ads join windows active directory with ldap ssl
Hi, I have enabled ldap ssl on Windows 2008 server active directory and want to join ads domain with net ads join command. I am getting below error:- net ads join -U Administrator ldap_url_parse_ext(ldap://localhost/) ldap_init: trying /etc/ldap/ldap.conf ldap_init: using /etc/ldap/ldap.conf ldap_init: HOME env is /root ldap_init: trying /root/ldaprc ldap_init: trying /root/.ldaprc ldap_init:
2008 Apr 24
3
[Bug 15689] New: loading playing flash file at URL freezes epiphany with 100% CPU usage
http://bugs.freedesktop.org/show_bug.cgi?id=15689 Summary: loading playing flash file at URL freezes epiphany with 100% CPU usage Product: swfdec Version: git Platform: Other URL: http://talkingpointsmemo.com/archives/190399.php OS/Version: All Status: NEW Severity: critical
2019 May 08
3
youtube-dl No module named 'pkg_resources'
youtube-dl doesn't work for me after a recent update. I do not use it often, so do not know whether the update matters. It gives the error message: Traceback (most recent call last): File "/usr/bin/youtube-dl", line 6, in <module> from pkg_resources import load_entry_point ModuleNotFoundError: No module named 'pkg_resources' I've tried reinstalling
2010 Oct 31
1
Rails application Webservices
hi all, I have a rails application at http://electric-sky-98.heroku.com/products require ''net/http'' require ''uri'' res = Net::HTTP.get_response(URI.parse(''http://electric- sky-98.heroku.com/products.xml'')) puts res.body the above code gave me the xml file below: <?xml version="1.0"
2006 Feb 09
4
sip to oh323 converter converts sip uri to h.323 number and not h.323 url
Hello, i have set up an asterisk sip to h.323 convertor, it is working OK. The only problem i have is this : For example when my identity is 12345@some.domain , and i call a sip number from a sip phone, the called party sees my identity (caller identity) as 12345@some.domain, which is the way it has to be. But when i call from the same phone with the same identity a h.323 endpoint (asterisk
2015 Sep 08
3
Euro LLVM videos finally online - proposal to use torrents for sharing
On Sep 8, 2015, at 12:26 PM, Renato Golin via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > On 8 September 2015 at 19:20, Tanya Lattner <tonic at nondot.org> wrote: >> Youtube has been discussed in the past but we have usually defaulted to >> mainly hosted on llvm.org and then a copy could potentially be on YouTube. I >> would want this to be an official
2009 Jun 22
2
URI::InvalidURIError with open-uri and Google Maps
Hello, I''m getting an URI::InvalidURIError in my controller when I use german characters in the uri. Google accepts them but open-uri not. How to encode them? That''s my controller simplified: def index require ''open-uri'' address = "Bürgerstraße+68+01127+Dresden" api_key = "my api key" json =
2009 May 08
2
Porting SWFDec to Android
Hi, I am planning to port latest SWFDec to android platform. The plans of mine are after porting it should support playing of youtube videos, I have downloaded the SWFDec package and plugin and installed the things but I am not able to open youtube video on my Mozilla browser. I have gone through the code in one of the files, while creating the decoders only "SWF", "IMAGE"
2019 Jun 28
2
Instcombine Creating Illegal Code? (in LLVM 7)
Hi all, I was playing around with LLVM 7 and I discovered something that seems to me to be a bug -- or at least something that I don't understand. Take the following valid simple program and run -instcombine on it declare i8* @malloc(i64) define void @caller() { entry: call void @callee() ret void } define fastcc void @callee() { entry: %malloccall = call i8* @malloc(i64 9) store
2012 Oct 03
1
squid cache question
Hi Friends, Same question has been asked on the Squid mailing list but so far no reply on the mailing list so posting it here also. We are trying to cache some files from apple.com like .dmg, .pkg, .ipa etc.. so that local clients can fetch the data from the cache. The problem we are facing is that we have download restrictions for every client to 25 MB during work hours except for a particular
2009 Dec 21
2
Playing with rgl: a Youtube video
I've just posted a demo made with the rgl package to Youtube, visible here: http://www.youtube.com/watch?v=prdZWQD7L5c For future reference, here are the steps I used: 1. Design a shape to be displayed, and then play with the animation functions to make it change over time. Use play3d to do it live in R, movie3d to write the individual frames of the movie to .png files. 2. Use the