Ross wrote:> Hi,
>
> I have some PHP that I need to emulate in Rails.
>
> The PHP is:
>
> curl_setopt($ch, CURLOPT_URL,"127.0.0.1/handler.php");
> curl_setopt($ch, CURLOPT_POST, 1);
> curl_setopt($ch, CURLOPT_POSTFIELDS,
"USERNAME=name&PASSWORD=pass );
>
> I''ve installed curllib and the curb rubygem, but being new to
Rails I
> have no idea how to ''use'' curb within the rails app
(require ''curb''
> failed). Do I need to create a curb lib and drop it into the lib folder?
>
> Some help would be greatly appreciated!
Nevermind - accomplished it with net/http.
--
Posted via ruby-forum.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---