[#7978] Patch for Unix socket peer credentials — "James F. Hranicky" <jfh@...>

This patch adds support for getting the uid and gid of the peer

27 messages 2006/06/09
[#8004] Re: Patch for Unix socket peer credentials — Tanaka Akira <akr@...17n.org> 2006/06/16

In article <200606091528.30171.jfh@cise.ufl.edu>,

[#8005] Re: Patch for Unix socket peer credentials — "James F. Hranicky" <jfh@...> 2006/06/16

On Friday 16 June 2006 11:51, Tanaka Akira wrote:

[#8010] Re: Patch for Unix socket peer credentials — Tanaka Akira <akr@...17n.org> 2006/06/17

In article <200606161327.35948.jfh@cise.ufl.edu>,

[#8191] Re: Patch for Unix socket peer credentials — "James F. Hranicky" <jfh@...> 2006/07/10

On Saturday 17 June 2006 06:27, Tanaka Akira wrote:

[#8193] Re: Patch for Unix socket peer credentials — Tanaka Akira <akr@...> 2006/07/11

In article <200607101352.16804.jfh@cise.ufl.edu>,

[#8212] Re: Patch for Unix socket peer credentials — "James F. Hranicky" <jfh@...> 2006/07/13

On Tuesday 11 July 2006 00:10, Tanaka Akira wrote:

[#8217] Re: Patch for Unix socket peer credentials — nobu@... 2006/07/14

Hi,

[#8257] Re: Patch for Unix socket peer credentials — "James F. Hranicky" <jfh@...> 2006/07/18

On Thursday 13 July 2006 22:48, nobu@ruby-lang.org wrote:

[#8258] Re: Patch for Unix socket peer credentials — Eric Hodel <drbrain@...7.net> 2006/07/18

On Jul 18, 2006, at 12:27 PM, James F. Hranicky wrote:

[#8073] 1.8.5p1 build failure on Solaris 10 — "Daniel Berger" <Daniel.Berger@...>

Solaris 10

23 messages 2006/06/27
[#8074] Re: 1.8.5p1 build failure on Solaris 10 — Yukihiro Matsumoto <matz@...> 2006/06/28

Hi,

[#8078] Re: 1.8.5p1 build failure on Solaris 10 — "Daniel Berger" <Daniel.Berger@...> 2006/06/28

Yukihiro Matsumoto wrote:

[#8079] Re: 1.8.5p1 build failure on Solaris 10 — ts <decoux@...> 2006/06/28

>>>>> "D" == Daniel Berger <Daniel.Berger@qwest.com> writes:

[#8096] Re: 1.8.5p1 build failure on Solaris 10 — ville.mattila@... 2006/06/29

ts <decoux@moulon.inra.fr> wrote on 28.06.2006 17:37:00:

Re: xmlrpc and charset=utf-8

From: Daniel Berger <djberg96@...>
Date: 2006-06-18 03:00:19 UTC
List: ruby-core #8011

--- Phil Tomson <rubyfan@gmail.com> wrote:

> I'm needed to interact with an XMLRPC server written
> using the
> xmlrpc-c library for C/C++.  I was using Ruby 1.8.4
> and found that I
> could not get a simple xmlrpc client written in Ruby
> that would
> communicate with the xmlrpc-c server.
> 
> I kept getting the following error:
>   /usr/local/lib/ruby/1.8/xmlrpc/client.rb:547:in
> `do_rpc':
> HTTP-Error: 400 Bad Request   (RuntimeError)
>         from
> /usr/local/lib/ruby/1.8/xmlrpc/client.rb:420:in
> `call2'
>         from
> /usr/local/lib/ruby/1.8/xmlrpc/client.rb:410:in
> `call'
>         from littleclient.rb:7
> 
> 
> I tried downgrading to Ruby 1.8.2 and it worked
> fine.
> 
> When I investigated the difference I found the
> following in the
> xmlrpc/client.rb file that comes with Ruby 1.8.4:
>     def do_rpc(request, async=false)
>       header = {
>        "User-Agent"     =>  USER_AGENT,
>        "Content-Type"   => "text/xml;
> charset=utf-8",
>        "Content-Length" => request.size.to_s,
>        "Connection"     => (async ? "close" :
> "keep-alive")
>       }
> 
> This differs from the client.rb included with Ruby
> 1.8.2:
> 
>       def do_rpc(request, async=false)
>         header = {
>          "User-Agent"     =>  USER_AGENT,
>          "Content-Type"   => "text/xml ",
>          "Content-Length" => request.size.to_s,
>          "Connection"     => (async ? "close" :
> "keep-alive")
>         }
> 
> so I changed the code in the 1.8.4 version of
> client.rb to remove the
> "charset=utf-8" - after that the ruby client
> interacted fine with the
> xmlrpc-c server.
> 
> I'm wondering if utf-8 should be the default charset
> for Ruby's xmlrpc
> client implementation?  Also, I'm wondering if
> perhaps it could be
> selectable by adding an accessor method to the
> client to the Client
> class?
> 
> Phil

Was this ever addressed?  I vote for both a default of
utf8 and an accessor method.

Regards,

Dan


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

In This Thread