net-http
RESTful Rails controller ans net/http as client - slow on many requests
I have an Array populated with potentially lots of records. Every records shall be saved by the server in a RESTful RecordsController. My Solution in the moment looks like this:[详细]
2023-04-09 11:42 分类:问答http.get randomly says "getaddrinfo: Name or service not known"
To generate offline reports, my Rails app needs to download charts from the Google Charts API. PROBLEM: It works fine most of the time, but sometimes (randomly) it fails and says getaddrinfo: Name or[详细]
2023-04-09 09:43 分类:问答Cookies - I may be crazy with ruby/rails
Is it possible to login with 开发者_JAVA百科net/http or curl, save the cookie response then write that cookie to the users browser so I can \"push login\" (in a sense)?[详细]
2023-04-06 01:38 分类:问答Following redirection and checking IP of website - Ruby
I need to create simple script in Ruby. All I have to do is a check link like this: www.mywebsite.com/redirect.php?=xxx I must check where the link isredirecting me and what exactly is a IP address of[详细]
2023-04-02 06:52 分类:问答Soap request with ruby net-http gives error 400 bad request
I try to consume a soap webservice. with ruby net/https gem. No matter what i try, i keep getting 400 Bad Request readbody=true errors[详细]
2023-03-31 13:23 分类:问答Net::HTTP post with multiline param
I\'d like to post a multiline param with Net::HTTP in Ruby. I tried adding \\n or \\r\\n in the param string but it just arrives at destination as \\n or \\r\\n.[详细]
2023-03-25 16:06 分类:问答Ruby - net/http - following redirects
I\'ve got a URL and I\'m using HTTP GET to pass a query along to a page.What happens with the most recent flavor (in net/http) is that the script doesn\'t go beyond the 302 response.I\'ve tried severa[详细]
2023-03-24 21:47 分类:问答How do I catch this exception in Ruby?
I\'m a ruby beginner so bear with me. I am using the selenium-webdriver and rb-appscript gems to do some webscraping. The navigation to websites seems to be driven by the Net::Http object, which has[详细]
2023-03-24 15:19 分类:问答Rails 3 EachValidator for URLs
I want to create an EachValidator that I can use to test the validity of a given URL. Basi开发者_StackOverflow中文版cally I would like to first test if it matches a URL format. If it appears to be a U[详细]
2023-03-15 06:19 分类:问答ActiveResource EOFError on "slow" API
I\'m seriously struggling to solve this one, any help would be appreciated! I have two Rails apps, let\'s call them Client and Service, all very simple, normal REST interface - here\'s the basic scen[详细]
2023-03-12 22:19 分类:问答