From: Yiyi Sun Date: Thu, 17 Jun 2010 13:45:07 GMT Subject: Fwd: git-receive-pack --stateless-rpc Message-ID: In-Reply-To: Hi, I am creating a Git smart HTTP protocol wrapper and run into two problem. I tried the msysGit mailing list and was told to ask them to the main git mailing list. Here is the story. During 'git push',  I successfully processed the initial GET request of '/info/refs?service=git-receive-pack' by sending back the output of 'git receive-pack --stateless-rpc --advertise-refs'. Then msysGit did a the POST request. I invoked 'git receive-pack --stateless-rpc', which returned: 0030 000eunpack ok 0019ok refs/heads/master 00000000 Question #1, Is the result supposed to be something below instead? 000eunpack ok 0019ok refs/heads/master 0000 Question #2, msysGit cannot parse the result, it displays error message: fatal: protocol error: bad line length character: 003 fatal: The remote end hung up unexpectedly It seems that msysGit can read the http response of HTTP GET, but not of HTTP POST. Can you please help ? Thanks, yysun