axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r448787 - /webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp
Date Fri, 22 Sep 2006 03:19:48 GMT
Author: nadiramra
Date: Thu Sep 21 20:19:48 2006
New Revision: 448787

URL: http://svn.apache.org/viewvc?view=rev&rev=448787
Log:
AXISCPP-998 wrong "Host:" HTTP request header when using HTTP proxy

Modified:
    webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp

Modified: webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp?view=diff&rev=448787&r1=448786&r2=448787
==============================================================================
--- webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp (original)
+++ webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp Thu Sep 21 20:19:48 2006
@@ -344,24 +344,21 @@
     m_strHeaderBytesToSend = m_strHTTPMethod + " ";
 
     if (m_bUseProxy)
-    {
         m_strHeaderBytesToSend += url.getURL ();
-        m_strHeaderBytesToSend += " ";
-        m_strHeaderBytesToSend += m_strHTTPProtocol;
-        m_strHeaderBytesToSend += "\r\nHost: ";
-        m_strHeaderBytesToSend += m_strProxyHost;
-        uiPort = m_uiProxyPort;
-    }
     else
-    {
         m_strHeaderBytesToSend += url.getResource ();
-        m_strHeaderBytesToSend += " ";
-        m_strHeaderBytesToSend += m_strHTTPProtocol;
-        m_strHeaderBytesToSend += "\r\nHost: ";
-        m_strHeaderBytesToSend += url.getHostName ();
-        uiPort = url.getPort();
-    }
 
+    m_strHeaderBytesToSend += " ";
+    m_strHeaderBytesToSend += m_strHTTPProtocol;
+
+    // The "Host:" HTTP request header should specify the Internet host and port number of

+    // the resource being requested, as obtained from the original URI given by the user
or 
+    // referring resource. 
+    
+    m_strHeaderBytesToSend += "\r\nHost: ";
+    m_strHeaderBytesToSend += url.getHostName ();
+    uiPort = url.getPort();
+    
     sprintf(buff, ":%u\r\n", uiPort);
     m_strHeaderBytesToSend += buff;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message