e deleflie
4/7/2008 2:45:00 AM
> e deleflie wrote:
> | Hi all,
> |
> | I'm trying to send a file via XML RPC ..... the below code doesn't
> | work (some HTTP error) and I cant find any samples anywhere on Google
> | .... can someone shed some light?
>
> And what would that error be?
HTTP-Error: 500 Internal Server Error
I suspect that the error is irrelevant, because I have no idea how to
pass a file in an XML RPC request .... and the error was generated
from a wild guess (which is the code repeated below).
@server = XMLRPC::Client.new2("http://" + @loginName.to_s + ":" +
@password.to_s + "@" + SITE_URL + "/")
file = IO.read("files/something.txt")
result = @server.call("submitFile", "first parameter" , "yada yada", file )
Etienne