Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to halt when error is found in multi mode? #172

Open
Jacky1212 opened this issue Oct 30, 2013 · 2 comments
Open

How to halt when error is found in multi mode? #172

Jacky1212 opened this issue Oct 30, 2013 · 2 comments

Comments

@Jacky1212
Copy link

For example,

Curl::Multi.get('url1','url2','url3','url4','url5', easy_options, multi_options) do|easy|
  # do something interesting with the easy response
  puts easy.last_effective_url
end

How to stop all the requests (if not yet started), when url1 return error such as 404?

@taf2
Copy link
Owner

taf2 commented Oct 31, 2013

I believe, in this case you'll have to use the lower level API see the Multi Interface (Advanced): section.

@Jacky1212
Copy link
Author

Hello,

I have watched the doc, can you point me which API allow me the quit from
the loop?

Thanks.

On Thu, Oct 31, 2013 at 8:01 PM, Todd Fisher [email protected]:

I believe, in this case you'll have to use the lower level API see the
Multi Interface (Advanced): section.


Reply to this email directly or view it on GitHubhttps://github.com//issues/172#issuecomment-27480189
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants