How to copy all post data out from CHtmlView::OnBeforeNavigate2 RRS feed

  • Question

  • I want to capture the posting data in my project. So, I derived CHtmlView::OnBeforeNavigate2, and used the parameter: CByteArray& baPostedData, since it contains all posting data that mentioned in MSDN.


    However, not all of the posting data can be captured. I found the posting data was cut at Content-Type: application/octet-stream, which is post file type. 


    below is my code:


    CByteArray& baPostedData is coming from CHtmlview, I want to copy out the data to my buffer pf.


     pf->m_len = baPostedData.GetCount();


     pf->m_pool.Write( (char *)(baPostedData.GetData()), baPostedData.GetCount());


    Is there any mistake?


    Steven You
    • Moved by Sheng Jiang 蒋晟 Friday, April 15, 2011 4:20 AM English (From:Visual C++)
    • Edited by qurrel Saturday, April 16, 2011 1:05 PM
    Thursday, April 14, 2011 11:34 PM

All replies

  • Please, what's your problem?  No data is writtend into a file ?
    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
    Friday, April 15, 2011 12:36 AM
  • part of data is lost. not all of the data can be copied out.


    Steven You
    Friday, April 15, 2011 12:12 PM
  • I changed the main topic. Please help me!
    Steven You
    Saturday, April 16, 2011 1:06 PM