Changeset 35 in cheroxy for trunk/src/main.cpp


Ignore:
Timestamp:
11/20/12 19:06:30 (11 years ago)
Author:
cheese
Message:

#1 add debugging message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main.cpp

    r34 r35  
    7777    CRXProxy    * aProxy = NULL;
    7878
    79     char        aFilterFileExtension[] = "exe|gif|jpg|png|css|js|ico|";
     79    char        aFilterFileExtension[] = "exe|gif|jpg|png|css|js|ico|swf|";
    8080    char        * aHttpMessage = NULL;
    8181    int         aHttpMessageLength = 0;
     
    106106        if (aResult < 0)
    107107        {
    108             cerr << aProxy->GetErrorMessage () << endl;
     108            cout << aProxy->GetErrorMessage () << endl;
    109109        }
    110110
     
    116116            free (aHttpMessage);
    117117
    118             aHttpMessageLength = aProxy->GetHttpResponseLength ();
     118            aHttpMessageLength = aProxy->GetHttpResponseHeaderLength ();
    119119            aHttpMessage = (char *) calloc (aHttpMessageLength + 1, 1);
    120             cout << aProxy->GetHttpResponse (aHttpMessage, aHttpMessageLength) << endl;
     120            cout << aProxy->GetHttpResponseHeader (aHttpMessage, aHttpMessageLength) << endl;
    121121            free (aHttpMessage);
    122122        }
     
    125125    }
    126126
    127     cerr << " thread exit." << endl;
     127    cout << " thread exit." << endl;
    128128    /*----------------------------------------------------------------*/
    129129
Note: See TracChangeset for help on using the changeset viewer.