# RFuzz::HttpClient hangs on meta refresh

**URL:** <https://www.ruby-forum.com/t/rfuzz-httpclient-hangs-on-meta-refresh/109036>\
**Category:** Ruby\
**Created:** [July 10, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/rfuzz-httpclient-hangs-on-meta-refresh/109036 "2007-07-10T19:35:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toro04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ea5d25/32.png) [@toro04](https://www.ruby-forum.com/u/toro04)\
**Post date:** [July 10, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/rfuzz-httpclient-hangs-on-meta-refresh/109036/1 "2007-07-10T19:35:42Z")

</div>

I have to integrate some code with a client who uses SalesForce as its  
CRM, and I’ve noticed something that might be RFuzz-related when  
working with the request.

SalesForce’s WebToLead service waits for HTTP POSTs to come in and  
translates those into new entries in its system. If you do a curl as  
such:

curl -d ‘’ ‘[http://www.salesforce.com/servlet/servlet.WebToLead](http://www.salesforce.com/servlet/servlet.WebToLead)’

You’ll get an empty response with a 200 status.

However, apparently SalesForce lets you provide a “retURL” key in the  
request body, and it’ll give you back a response with a meta refresh  
tag:

curl -d ‘retURL=[http://www.google.com](http://www.google.com)’ ‘[http://www.salesforce.com/](http://www.salesforce.com/)  
servlet/servlet.WebToLead’

The response will be something like this:

Whenever I try this through RFuzz’s HttpClient, however, it hangs on  
me:

uri = URI.parse(‘[http://www.salesforce.com/servlet/servlet.WebToLead](http://www.salesforce.com/servlet/servlet.WebToLead)’)  
client = RFuzz::HttpClient.new(uri.host, uri.port)  
client.post(uri.path, :body =\> ‘retURL=[http://www.google.com](http://www.google.com)’) # ←   
Hangs

Even when providing “:redirect =\> false” to client.post, it still  
hangs.

Any ideas?

Thanks,  
Adam
