[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: Manuel Lemos <mlemos_at_acm.org>
Date: Sat, 30 Jul 2011 22:20:57 -0300

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

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/

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.

-- 
Regards,
Manuel Lemos
JS Classes - Free ready to use OOP components written in JavaScript
http://www.jsclasses.org/
-- 
Regards,
Manuel Lemos
JS Classes - Free ready to use OOP components written in JavaScript
http://www.jsclasses.org/
Received on 2011-07-31 03:21:27 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.