tags:

views:

68

answers:

1

Hello,

I've a remote cgi script hosted on Apache using SSL. It takes in two input variables a and b.

I want to call call the cgi script with right input variables using ruby.

Any clues would be appreciated.

A: 

Assuming you mean that you want to make a remote call to the CGI script via HTTP then take a look at using Net::HTTP plus CGI.escape to encode the values of a and b. There are some examples of doing this using GET and POST in the Net::HTTP documentation.

mikej