search for: email_to_friend

Displaying 1 result from an estimated 1 matches for "email_to_friend".

Did you mean: email_to_fred
2010 May 17
2
"end of file" error for "net/https"
Hi, I have written following code:- It is working fine for http protocol. But whenever I am doing for https I getting an error "end of file reached". Can anyone tell me what is wrong with the code? def email_to_friend require ''net/http'' require "net/https" require ''uri'' #res = Net::HTTP.post_form(URI.parse(''http://www.test.com/''),{''q''=>''ruby''}) res = Net::HTTP.post_form(URI.parse(''https:/...