<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>webserver Forum Rss Feed</title><link>http://www.codeplex.com/webserver/Thread/List.aspx</link><description>webserver Forum Rss Description</description><item><title>New Post: Implimenting SPENGO authentication</title><link>http://webserver.codeplex.com/discussions/51315</link><description>&lt;div style="line-height: normal;"&gt;Any Chance to achieve an SSPI Integration?&lt;br /&gt;
&lt;br /&gt;
i have no glue where to start.&lt;br /&gt;
&lt;br /&gt;
i am open for ideas.&lt;br /&gt;
best regards&lt;br /&gt;
Kai&lt;br /&gt;
&lt;/div&gt;</description><author>kaiwachter</author><pubDate>Fri, 12 Apr 2013 12:23:30 GMT</pubDate><guid isPermaLink="false">New Post: Implimenting SPENGO authentication 20130412122330P</guid></item><item><title>New Post: x64 embedded?</title><link>http://webserver.codeplex.com/discussions/439339</link><description>&lt;div style="line-height: normal;"&gt;hello&lt;br /&gt;
&lt;br /&gt;
Can Codeplex webserver be embedded with 64bit application?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;/div&gt;</description><author>devvvy</author><pubDate>Sat, 06 Apr 2013 11:12:30 GMT</pubDate><guid isPermaLink="false">New Post: x64 embedded? 20130406111230A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;DELETED&lt;br /&gt;
&lt;/div&gt;</description><author>wo80</author><pubDate>Fri, 05 Apr 2013 11:54:32 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405115432A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;P.S. Sorry, POST data fixes were done in HttpServer itself, not in Addons, so it's not related to your last post.&lt;br /&gt;
&lt;/div&gt;</description><author>DDefn</author><pubDate>Fri, 05 Apr 2013 11:46:27 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405114627A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;Thank you. Have you also fixed an issue with missing POST data? I had to fix it locally, it's more or less along the lines of this thread:&lt;br /&gt;
&lt;a href="https://webserver.codeplex.com/discussions/229392" rel="nofollow"&gt;https://webserver.codeplex.com/discussions/229392&lt;/a&gt;&lt;br /&gt;
(EDIT: our version may be obsolete compared to latest releases)&lt;br /&gt;
&lt;/div&gt;</description><author>DDefn</author><pubDate>Fri, 05 Apr 2013 11:31:25 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405113125A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;I updated the code. There are some breaking changes, so also have a look at the example on the webpage.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://wo80.hostingsociety.com/p/httpserver.addons/" rel="nofollow"&gt;http://wo80.hostingsociety.com/p/httpserver.addons/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Regarding your problem: the code for setting the CGI headers is now in CgiModule.cs in the HttpServer.Addons.Modules namespace.&lt;br /&gt;
&lt;/div&gt;</description><author>wo80</author><pubDate>Fri, 05 Apr 2013 10:58:52 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405105852A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;Ok I think I made it work.&lt;br /&gt;
&lt;br /&gt;
We use the version from here:&lt;br /&gt;
&lt;a href="http://wo80.hostingsociety.com/p/httpserver.addons/#download" rel="nofollow"&gt;http://wo80.hostingsociety.com/p/httpserver.addons/#download&lt;/a&gt;&lt;br /&gt;
downloaded somewhere in March 2013.&lt;br /&gt;
&lt;br /&gt;
I added the code to CgiHeaders.cs ParseCgiHeaders() function (see code between // DD START and // DD END comments):&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;        public static void ParseCgiHeaders(ref string cgiOutput, IResponse response)
        {
            // TODO: Make this more robust (are we really stripping headers???)
            int index = cgiOutput.IndexOf(&amp;quot;\r\n\r\n&amp;quot;);

            if (index != -1)
            {
                string header = cgiOutput.Substring(0, index + 2);
                cgiOutput = cgiOutput.Substring(index + 2);

                int end = header.IndexOf(&amp;quot;\r\n&amp;quot;);

                while (end != -1)
                {
                    string line = header.Substring(0, end);
                    header = header.Substring(end + 2);

                    int colonIndex = line.IndexOf(&amp;quot;:&amp;quot;);
                    if (colonIndex &amp;lt;= 1)
                        break;

                    string val = line.Substring(colonIndex + 1).Trim();
                    string name = line.Substring(0, colonIndex).Trim();

                    // TODO !!!
                    if (name.ToLowerInvariant() == &amp;quot;content-type&amp;quot;)
                    {
                        response.ContentType.Value = val;
                    }
                    // DD START fix redirecion by Location header:
                    else if (name.ToLowerInvariant() == &amp;quot;location&amp;quot;)
                    {
                        response.Redirect(val);
                    }
                    // DD END fix redirecion by Location header
                    else
                    {
                        response.Add(new StringHeader(name, val));
                    }

                    end = header.IndexOf(&amp;quot;\r\n&amp;quot;);
                }
            }

            cgiOutput = cgiOutput.Trim();
        }
&lt;/code&gt;&lt;/pre&gt;

Thank you everyone, I would have had heavy difficulties finding it on my own..&lt;br /&gt;
&lt;br /&gt;
Sincerely&lt;br /&gt;
D&lt;br /&gt;
&lt;/div&gt;</description><author>DDefn</author><pubDate>Fri, 05 Apr 2013 09:31:36 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405093136A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;I think we use another version; there's no such function in CgiHeaders.cs, but there's ParseCgiHeaders() (with several ToDo comments), I will try to look into it..&lt;br /&gt;
&lt;/div&gt;</description><author>DDefn</author><pubDate>Fri, 05 Apr 2013 09:08:22 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405090822A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;If you are using the code from &lt;a href="http://wo80.hostingsociety.com/p/httpserver.addons" rel="nofollow"&gt;http://wo80.hostingsociety.com/p/httpserver.addons&lt;/a&gt; :&lt;br /&gt;
&lt;br /&gt;
Open CgiHandler.cs and add the 302 to the GetStatusCode method:&lt;br /&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;private&lt;/span&gt; &lt;span style="color:Blue;"&gt;static&lt;/span&gt; HttpStatusCode GetStatusCode(&lt;span style="color:Blue;"&gt;string&lt;/span&gt; value)
{
    &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (value.StartsWith(&lt;span style="color:#A31515;"&gt;&amp;quot;404&amp;quot;&lt;/span&gt;))
    {
        &lt;span style="color:Blue;"&gt;return&lt;/span&gt; HttpStatusCode.NotFound;
    }
    &lt;span style="color:Blue;"&gt;else&lt;/span&gt; &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (value.StartsWith(&lt;span style="color:#A31515;"&gt;&amp;quot;401&amp;quot;&lt;/span&gt;))
    {
        &lt;span style="color:Blue;"&gt;return&lt;/span&gt; HttpStatusCode.Unauthorized;
    }
    &lt;span style="color:Blue;"&gt;else&lt;/span&gt; &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (value.StartsWith(&lt;span style="color:#A31515;"&gt;&amp;quot;302&amp;quot;&lt;/span&gt;))
    {
        &lt;span style="color:Blue;"&gt;return&lt;/span&gt; HttpStatusCode.Redirect;
    }

    &lt;span style="color:Blue;"&gt;return&lt;/span&gt; HttpStatusCode.OK;
}
&lt;/pre&gt;&lt;/div&gt;This should fix the problem.&lt;br /&gt;
&lt;/div&gt;</description><author>wo80</author><pubDate>Fri, 05 Apr 2013 08:58:27 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405085827A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;P.S. I think I found it, in Response.cs  Response() method. I will modify and post here the results..&lt;br /&gt;
&lt;/div&gt;</description><author>DDefn</author><pubDate>Fri, 05 Apr 2013 08:26:08 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405082608A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;I've already tied to set the Status header, and I've tried the code from StackOverflow, as follows:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;header(&amp;quot;Status: 302&amp;quot;); // for fast cgi
header($_SERVER['SERVER_PROTOCOL'] . &amp;quot; 302&amp;quot;);&lt;/code&gt;&lt;/pre&gt;

and&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;header(&amp;quot;Status: 302 Found&amp;quot;); // for fast cgi
header($_SERVER['SERVER_PROTOCOL'] . &amp;quot; 302 Found&amp;quot;);&lt;/code&gt;&lt;/pre&gt;

and in FireBug I see that Status header is sent, but &amp;quot;Status of received responces&amp;quot; (Status column in Network output) is still &amp;quot;200 Made by Jonas Gauffin&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Could you please hint me where to make the changes in the source code?&lt;br /&gt;
&lt;br /&gt;
Thank you for your support&lt;br /&gt;
D&lt;br /&gt;
&lt;/div&gt;</description><author>DDefn</author><pubDate>Fri, 05 Apr 2013 08:20:14 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405082014A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div dir="ltr"&gt;You can also try to change it in php (just to validate that it works then):
&lt;a href="http://stackoverflow.com/a/6179761/70386"&gt;http://stackoverflow.com/a/6179761/70386&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>jgauffin</author><pubDate>Fri, 05 Apr 2013 08:10:08 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405081008A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div dir="ltr"&gt;Ok. It needs to be 302 to tell that it's a redirect. I guess that the PHP module needs to check if the location header has been set and if so change the status code to 302.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>jgauffin</author><pubDate>Fri, 05 Apr 2013 08:09:18 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405080918A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;If we are talking about the same thing, it's &lt;br /&gt;
&lt;strong&gt;&amp;quot;200 Made by Jonas Gauffin&amp;quot;&lt;/strong&gt;&lt;br /&gt;
it's what I see in FireBug&amp;quot; in status column. It is the only visible difference I see compared to other servers executing the same page..&lt;br /&gt;
&lt;br /&gt;
EDIT easyPHP, for example, returns &amp;quot;302 Found&amp;quot;&lt;br /&gt;
&lt;/div&gt;</description><author>DDefn</author><pubDate>Fri, 05 Apr 2013 08:06:52 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405080652A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div dir="ltr"&gt;Which HTTP status code is returned?&lt;/div&gt;
&lt;div&gt;&lt;br&gt;
&lt;br&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>jgauffin</author><pubDate>Fri, 05 Apr 2013 08:04:08 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405080408A</guid></item><item><title>New Post: PHP header function - redirection does not work using header("Location: url")</title><link>http://webserver.codeplex.com/discussions/439196</link><description>&lt;div style="line-height: normal;"&gt;Good day everyone.&lt;br /&gt;
&lt;br /&gt;
We are using this project to implement a local testing environment for websites and notably PHP pages, and we got it working rather well. Thank you for the powerful solution. But we've stumbled on the fact that the function &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;header('Location: http://google.com');&lt;/code&gt;&lt;/pre&gt;

does not result in redirecting. The function works it seems, browser receives new headers, including Location, but no redirection happens. I simplified the code to the following (to avoid any possible output etc., and there are no error reports whatsoever)&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?php
error_reporting(E_ALL);
ini_set('display_errors','On');

// header(&amp;quot;Content-type: image/png;&amp;quot;); // this works, for example
header('Location: http://www.google.com'); // this doesn't, though it works with easyPHP etc.

?&amp;gt;&lt;/code&gt;&lt;/pre&gt;

I didn't find any posts here related to this. The help would be very appreciated.&lt;br /&gt;
&lt;br /&gt;
Sincerely&lt;br /&gt;
D&lt;br /&gt;
&lt;/div&gt;</description><author>DDefn</author><pubDate>Fri, 05 Apr 2013 07:50:43 GMT</pubDate><guid isPermaLink="false">New Post: PHP header function - redirection does not work using header("Location: url") 20130405075043A</guid></item><item><title>New Post: HAML documentation issue</title><link>http://webserver.codeplex.com/discussions/433367</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
I do use webserver, but novadays, I'm facing a huge problem. Description of class HamlGenerator() refers to link &lt;a href="http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml.html" rel="nofollow"&gt;http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml.html&lt;/a&gt; where sould be HAML documentation...but, the doc doesn't exist and I need the documentation. Does someone have this document or does somebody know where I can find it pls?&lt;br /&gt;
Thank you,&lt;br /&gt;
Stepo&lt;br /&gt;
&lt;/div&gt;</description><author>Stepo</author><pubDate>Sat, 16 Feb 2013 15:01:27 GMT</pubDate><guid isPermaLink="false">New Post: HAML documentation issue 20130216030127P</guid></item><item><title>New Post: HTTPS support</title><link>http://webserver.codeplex.com/discussions/430976</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Great thanks I will give it a try tomorrow!&lt;/p&gt;
&lt;/div&gt;</description><author>devvvy</author><pubDate>Mon, 28 Jan 2013 03:43:27 GMT</pubDate><guid isPermaLink="false">New Post: HTTPS support 20130128034327A</guid></item><item><title>New Post: HTTPS support</title><link>http://webserver.codeplex.com/discussions/430976</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;You need to use a SecureHttpListener with the server:&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;var&lt;/span&gt; cert = &lt;span style="color:blue"&gt;new&lt;/span&gt; X509Certificate(&lt;span style="color:#a31515"&gt;@&amp;quot;path\to\certificate.cer&amp;quot;&lt;/span&gt;);
&lt;span style="color:blue"&gt;var&lt;/span&gt; listener = HttpListener.Create(IPAddress.Loopback, 443, cert);
server.Add(listener);
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Also have a look at &lt;a href="http://www.yasinkaplan.com/tekcert.asp"&gt;TekCERT&lt;/a&gt;. Will help you setup and manage your certificates.&lt;/p&gt;
&lt;/div&gt;</description><author>wo80</author><pubDate>Sun, 27 Jan 2013 18:28:03 GMT</pubDate><guid isPermaLink="false">New Post: HTTPS support 20130127062803P</guid></item><item><title>New Post: HTTPS support</title><link>http://webserver.codeplex.com/discussions/430976</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;hi, the only piece of information I found relavant to HTTPS support is this:&lt;/p&gt;
&lt;p&gt;http://webserver.codeplex.com/wikipage?title=HTTPS&lt;/p&gt;
&lt;p&gt;This thread however only discussed how to generate the certificates - but how to point our codeplex webserver to the certificate for it to actually use it?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;/div&gt;</description><author>devvvy</author><pubDate>Sun, 27 Jan 2013 02:55:23 GMT</pubDate><guid isPermaLink="false">New Post: HTTPS support 20130127025523A</guid></item></channel></rss>