savannah-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-users] Re: git "smart http" protocol


From: Miles Bader
Subject: [Savannah-users] Re: git "smart http" protocol
Date: Fri, 17 Sep 2010 14:17:30 +0900

Sylvain Beucler <address@hidden> writes:
> Hmmm, actually it works, but it doesn't support a HTTP redirect
> (namely git.sv.gnu.org -> git.savannah.gnu.org).

I'm a little confused ... is savannah sending a proper redirect?

When I telnet to git.sv.gnu.org on the http port, I don't see any http
headers in the response (I typed the "GET ..." line below, the rest is
savannah's response):

   $ telnet git.sv.gnu.org http
   Trying 140.186.70.72...
   Connected to git.sv.gnu.org.
   Escape character is '^]'.
   GET http://git.sv.gnu.org/r/freedink.git
   <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
   <html><head>
   <title>301 Moved Permanently</title>
   </head><body>
   <h1>Moved Permanently</h1>
   <p>The document has moved <a 
href="http://git.savannah.gnu.org/r/freedink.git";>here</a>.</p>
   <hr>
   <address>Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_python/3.2.10 
Python/2.4.4 mod_wsgi/2.5 Server at git.sv.gnu.org Port 80</address>
   </body></html>
   Connection closed by foreign host.

[Note, no http headers...]

The wikipedia page for http redirects says that a response should like:

   HTTP/1.1 301 Moved Permanently
   Location: http://www.example.org/
   Content-Type: text/html
   Content-Length: 174

   <html>
   <head>
   <title>Moved</title>
   </head>
   <body>
   <h1>Moved</h1>
   <p>This page has moved to <a 
href="http://www.example.org/";>http://www.example.org/</a>.</p>
   </body>
   </html>

[ From:  http://en.wikipedia.org/wiki/URL_redirection ]

Thanks,

-Miles

-- 
Selfish, adj. Devoid of consideration for the selfishness of others.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]