# Threading and Net/Http (Mechanize)

**URL:** <https://www.ruby-forum.com/t/threading-and-net-http-mechanize/137897>\
**Category:** Rails\
**Created:** [May 17, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/threading-and-net-http-mechanize/137897 "2008-05-17T21:06:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![histrionics](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/dec6dc/32.png) [@histrionics](https://www.ruby-forum.com/u/histrionics)\
**Post date:** [May 17, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/threading-and-net-http-mechanize/137897/1 "2008-05-17T21:06:21Z")

</div>

Does anyone ever see alot of errors like this:  
Exception `Net::HTTPBadResponse’ at /usr/lib/ruby/1.8/net/http.rb:2022

- wrong status line: _SOME HTML CODE HERE_

When using threads and mechanize? I’m relatively certain that this is  
some bad behavior between threads and the net/http library, but does  
anyone have any advice as far as the upper limit of threads you want  
to run at once when using mechanize/nethttp?
