During my tests when installing my system I tried also on a windows machine before, and the hook I had was like the following. Maybe you could try to adapt for your own environment:

@ECHO OFF
SETLOCAL

rem SET REPOS=%1
SET REPOS="Test"
SET REV=%2

SET CHECKINURL="http://localhost/mantis/plugin.php?page=Source/checkin"

SET /a LOGFILE=%RANDOM%+100000
SET LOGFILE=svn_%REV%_%LOGFILE:~-5%_log.TMP
SET CURL="C:\webserver\curl\curl-7.21.4\bin\curl.exe"

%CURL% -d "repo_name=%REPOS%" -d "data=%REV%" %CHECKINURL% >> %LOGFILE%

CALL DEL "%LOGFILE%"


I hope it will help.

PS: it is normal that when you tried http://localhost/mantis/plugin.php?page=Source/checkin it did not work because you missed 2 required parameters to the chekin script: the repo_name and the data parameters!

-- 
AlainD.


Date: Fri, 3 Feb 2012 08:11:14 +0100
From: "Malgarida Edoardo" <edoardo.malgarida@salvagninigroup.com>
Subject: [mantisbt-help] SVN and post-commit hook
To: <mantisbt-help@lists.sourceforge.net>
Message-ID:
       <1ED714C0278A82438BA1B6BDE1E7782403244D77@SSHPBLD1C4M1.europe.salvagninigroup.com>

Content-Type: text/plain; charset="us-ascii"

My system has the following components:

mysql 5.0.51a
PHP 5.3.5
Apache 2.2.21
mantis bt 1.2.28
SVN 1.6.17
websvn 2.3.3
plugins-source-integration 0.13.2-177

I'm in trouble with SVN post-commit hook. I''m working in windows (XP
sp3), so the hook script has to be a .bat file written in a windows good
code.
in Source plug-in the post-commit.tmpl is written for linux... Who can
help me?

Then if I trie to see
http://localhost/mantis/plugin.php?page=Source/checkin
<http://localhost/mantis/plugin.php?page=Source/checkin>  I obtain
"APPLICATION ERROR #200
A required parameter to this page (api_key) was not found"



Edoardo Malgarida




--

AlainD.