You cannot post messages because only members can post, and you are not currently a member.
Description:
A group to discuss Typhoeus, a Ruby library for wrapping HTTP request logic and running in many connections in parallel.
|
|
|
Uploading a large number of files to S3
|
| |
I am trying to upload a large number of files to S3. I found that I can do this to upload a file to S3 via Typhoeus. s3 = AWS::S3.new.buckets['my-bucket '] o = s3.objects['new_file.dat'] url = o.url_for(:write).to_s r = Typhoeus::Request.new url, method: :put, body: open('new_file.dat').read h = Typhoeus::Hydra.hydra... more »
|
|
error using typhoeus and alchemy
|
| |
Hello everyone, I'm trying to use AlchemyApi in my rails app. When I install it, it is also installed Typhoeus. I have no problems in the installation. However, when I try to run the server, it raises the folowing: /Volumes/HDD/Rubyworkspace/bra ndpoliticalmonitor/vendor/bund le/gems/typhoeus-0.6.3/lib/typ hoeus/request/actions.rb:120:i n... more »
|
|
Trying to replicate command line curl binary post
|
| |
Hi, I'm trying to use Typhoeus to post some binary data, ala the following command line curl: curl -X POST --post301 --location-trusted --user "my-user:my-password" --digest --data-binary @pic.jpg -H "Some-Header: Value" [link] When this is made at some point it will be asked for the auth information,... more »
|
|
typhoeus/ethon and CURLOPT_UNRESTRICTED_AUTH
|
| |
Hi, The documentation for userpwd= in Ethon::Easy::Options makes reference to the possibility of setting CURLOPT_UNRESTRICTED_AUTH so that auth information will be resent after redirects (I assume like the command line curl's --location-trusted flag). However I don't see any way of setting this in the docs and wanted to know if I'm just missing it.... more »
|
|
Synchronous behavior and typheous
|
| |
I've got a simple question which should seem obvious, but my testing is causing doubts in my mind.
If I were to call (psuedo-code)
Typheous::Request.post(url1,op tions) #request1
Typheous::Request.post (url2,options) #request2
should I expect to receive response 1 before request 2 is made?... more »
|
|
How to set a timeout for the Hydra?
|
| |
I have a simple class which uses Hydra to hit multiple URLs in parallel: [link] I understand how to set a timeout on each individual request (which I'm doing in the above gist). Is it possible in addition to set an overall timeout for the Hydra? For example, let's say I queue 50 URLs in the Hydra and each one responds... more »
|
|
Stubbing
|
| |
Was the hydra.stub method removed? If so any alternative on how to stub test? Thanks
|
|
Proxy authentication
|
| |
I've seen various ways of specifying a proxy username and password mentioned on here and elsewhere, but can't get any of them to work. This is what I currently have: request = Typhoeus::Request.new(page.url , :followlocation => true, :proxy => proxy.server,... more »
|
|
|