[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to use SVN::Client with authenticated proxy?

From: Mark Phippard <markphip_at_gmail.com>
Date: Fri, 6 Mar 2009 11:34:15 -0500

On Fri, Mar 6, 2009 at 11:23 AM, Josef Wolf <jw_at_raven.inka.de> wrote:

> I am about to write a perl script to manage a subversion working copy
> with SVN::Client module.  It seems to be easier than I thought. Here's
> my first attempt (mostly copied from the man page):
>
>
>  #! /usr/bin/perl
>
>  use strict;
>  use warnings;
>
>  use SVN::Client;
>
>  my $ctx = new SVN::Client(
>      auth => [SVN::Client::get_simple_provider(),
>               SVN::Client::get_simple_prompt_provider(\&simple_prompt,2),
>               SVN::Client::get_username_provider()]
>      );
>
>  $ctx->checkout ('https://some.host/repos/trunk', '/var/tmp/repostest',
>                  'HEAD', 1);
>
>  sub simple_prompt {
>      my $cred = shift;
>      my $realm = shift;
>      my $default_username = shift;
>      my $may_save = shift;
>      my $pool = shift;
>
>      $cred->username("me");
>      $cred->password("mypassword");
>  }
>
>
> But now I got somewhat stuck: how do I configure the proxy that
> SVN::Client should use?  And how would I configure the credentials
> for the proxy?  Any hints?

Doesn't it all have to be pre-configured in Subversion runtime
configuration area?

http://svnbook.red-bean.com/en/1.5/svn.advanced.confarea.html

I do not think there are any callbacks where you can provide this.
There might be some API that let's you "push" these same configuration
settings into the the libraries though.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1278030
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-06 17:35:06 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.