On Sat, Jul 30, 2011 at 12:16 PM, Manuel Lemos <mlemos_at_acm.org> wrote:
> I am writing a small SubVersion client library independent of the svn
> client command.
> My library works well but for some reason it does not work with a certain
> SSL server that is not under my control. It returns error 400. I assume I am
> sending some malformed commands.
> On the other hand the svn client command works well. I tried to use strace
> to see what svn does different but since it is all in SSL I cannot see the
> HTTP requests and responses in the strace output because it is all
> Is there a way to log the svn client HTTP traffic to a file so I can
> examine and compare the requests being sent and responses being received?
Are you not using the libsvn_* libraries? libsvn_client is specifically
meant to build Subversion clients other than the standard command line
client: Subclipse, AnkhSVN, TortoiseSVN and others are all based on it. When
using those libraries, you don't have to be worried to "emulate" the
protocol correctly. Basically, you can build your own client on the vast
experience of the Subversion developers. The other libraries allow you to
interact as a Subversion client on different levels in the stack, libsvn_ra
for example will allow you to interact with a Subversion server without
having a local working copy.
The above is not only directed at you, btw, it's a message to everybody who
is planning to write a Subversion client.
Received on 2011-07-30 14:01:28 CEST