You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2004/10/28 04:51:32 UTC

[jira] Resolved: (AXISCPP-230) "Protocol is not HTTP" error is shown when there is valid HTTP header

     [ http://issues.apache.org/jira/browse/AXISCPP-230?page=history ]
     
Samisa Abeysinghe resolved AXISCPP-230:
---------------------------------------

    Resolution: Fixed

Fixed this by correcting the error:

Earlier it was:
m_Channel >> m_strReceived;
            if (!m_bReadPastHTTPHeaders)
            {
                do
                {
                    if (m_strReceived.find ("\r\n\r\n") == std::string::npos)
                        m_Channel >> m_strReceived;    // Assume non blocking here
                }
                while (m_strReceived.find ("\r\n\r\n") == std::string::npos);

now it is:
m_Channel >> m_strReceived;
            if (!m_bReadPastHTTPHeaders)
            {
                do
                {
                    if (m_strReceived.find ("\r\n\r\n") == std::string::npos) {
                        std::string strTempReceived = "";
                        m_Channel >> strTempReceived;    // Assume non blocking here
                        m_strReceived += strTempReceived;
                    }
                }
                while (m_strReceived.find ("\r\n\r\n") == std::string::npos);


> "Protocol is not HTTP" error is shown when there is valid HTTP header
> ---------------------------------------------------------------------
>
>          Key: AXISCPP-230
>          URL: http://issues.apache.org/jira/browse/AXISCPP-230
>      Project: Axis-C++
>         Type: Bug
>   Components: Transport (original and libwww)
>     Versions: 1.3 Final
>  Environment: All platforms
>     Reporter: Samisa Abeysinghe
>     Assignee: Samisa Abeysinghe
>      Fix For: current (nightly)

>
> See http://marc.theaimsgroup.com/?t=109883946100001&r=1&w=2 for context

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira