Hi Bill,...Thanks for responding,..
Hmm...I understand the http line you write, but not clear on the curl
line..
Where do I poke that?..into the Rails Browser line?...or is that all
one line?
On Windows7 here, I don't seem to have a version of curl...
Could you elaborate on how to use?
Since I posted that, I have made some progress (I think, lol)
Now, using pretty much the same input, I get back:
C:/RubyStack-3.2.3-0/ruby/lib/ruby/gems/1.9.1/gems/ginjo-rfm-2.0.2/lib/
rfm/server.rb:335:in `http_fetch': The account name (Admin) or
password provided is not correct (or the account doesn't have the
fmxml extended privilege). (Rfm::AuthenticationError)
Which kinda' sounds like a Windows Authentication issue,...but I could
be mistaken,..
Here is the script:
require 'rubygems'
require 'rfm'
fm = Rfm::Server.new({
:host => "192.168.50.71",
:account_name => "Admin",
:password => "???",
:ssl => false,
:log_actions => true,
:log_responses => true,
:root_cert => false,
:timeout => 180
})
fm["ProgramTestDatabase"]["ProgramTestDatabase"].all.each do |record|
puts record["Item"]
end
puts "DONE!"
------------------------------------------------------------------------------
Here's the full output:
C:\Ruby>ruby r15.rb
http://192.168.50.71:80/fmi/xml/fmresultset.xml?-db=ProgramTestDatabase&-lay=ProgramTestDatabase&-findall=
date: ["Fri, 01 Jun 2012 00:58:46 GMT"]
server: ["Apache/2.2.21 (Unix) PHP/5.3.8 mod_jk/1.2.23"]
cache-control: ["no-cache=\"set-cookie\"", "must-revalidate"]
set-cookie: ["fmi-cookie=fmi-cookie; Path=/; Version=1"]
connection: ["Close"]
www-authenticate: ["Basic realm=\"Database ProgramTestDatabase\""]
expires: ["Tue, 03 May 1988 14:40:00 GMT"]
ms-author-via: ["DAV"]
x-frame-options: ["SameOrigin"]
transfer-encoding: ["chunked"]
content-type: ["text/html; charset=utf-8"]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/
TR/html4/strict.dtd">
<html>
<head>
<title>HTTP 401: Forbidden</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td bgcolor="#000099"><h2><font color="ffffff" face="Arial, Helvetica,
sans-serif">HTTP 401: Forbidden</font></h2></td>
</tr>
<tr>
<td><p> </p>
<p><font size="3" face="Arial, Helvetica, sans-serif">Access to this
file is not permitted.</font></p></td>
</tr>
</table>
</body>
</html>
C:/RubyStack-3.2.3-0/ruby/lib/ruby/gems/1.9.1/gems/ginjo-rfm-2.0.2/lib/
rfm/server.rb:335:in `http_fetch': The account name (Admin) or
password provided is not correct (or the account doesn't have the
fmxml extended privilege). (Rfm::AuthenticationError)
from C:/RubyStack-3.2.3-0/ruby/lib/ruby/gems/1.9.1/gems/ginjo-
rfm-2.0.2/lib/rfm/server.rb:274:in `connect'
from C:/RubyStack-3.2.3-0/ruby/lib/ruby/gems/1.9.1/gems/ginjo-
rfm-2.0.2/lib/rfm/layout.rb:255:in `get_records'
from C:/RubyStack-3.2.3-0/ruby/lib/ruby/gems/1.9.1/gems/ginjo-
rfm-2.0.2/lib/rfm/layout.rb:166:in `all'
from r15.rb:18:in `<main>'
-------------------------------------------------------------------------------------------------
Thank you for your help,
Jim