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

Re: Logging Subversion client HTTP requests

From: Geoff Hoffman <ghoffman_at_cardinalpath.com>
Date: Sat, 30 Jul 2011 18:57:25 -0700

On Sat, Jul 30, 2011 at 6:20 PM, Manuel Lemos <mlemos_at_acm.org> wrote:

> Hello,
>
> on 07/30/2011 09:16 PM Geoff Hoffman said the following:
>
> > I have already a pure PHP implementation
> >
> >
> > Manuel, didn't you also write whole Mailer library for PHPClasses.org
> > and start that site? When do you sleep?
>
> hahah good question. When you work full time on these stuff you do it for
> pleasure and too bad sleep does not allow you to do more in less time! :-)
>
>
>
> > You're speaking to svn server directly from PHP, with stream context or
> > exec( ) bridge somehow? I'm curious now.
>
> Actually I am using a long standing HTTP client which uses fsockopen by
> default but it can optionally switch to Curl for SSL requests.
>
> http://www.phpclasses.org/**httpclient<http://www.phpclasses.org/httpclient>
>
> Either way there is at least one SubVersion host on SSL (BeanstalkApp)
> which is returning error 400 all the time.
>
> https://sschlapkohl.svn.**beanstalkapp.com/htmlform/**trunk/<https://sschlapkohl.svn.beanstalkapp.com/htmlform/trunk/>
>
> Anyway, I just realized if I use file_get_contents (with default stream
> context) which just sends a simple GET request with one Host: header, it
> works.
>
> So there is something specific to that Web server that is balking all
> requests with status 400. I suspect that it is not even related with
> SubVersion because even GET requests fail.
>
> Just let me know if you have any idea.
>
>
>

Does httpclient work if you switch it to the cURL option? You may need to
extend the class to provide https specific curl options [1].

[1]
http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/
Received on 2011-07-31 03:57:57 CEST

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.