Hi, i need help.
I wrote a small web browser
class CExplorer1 : public CWnd
CExplorer1 m_browser[TABS];
CString Url="";
CString requestHeaders="";
CString requestBody="";
COleVariant crequestBody="";
COleVariant crequestHeaders="";
Url = _T("http://beltelecom.by/subscribers/phone-debt");
requestHeaders = _T("Host: beltelecom.by\r\n");
requestHeaders += _T("Content-Type: application/x-www-form-urlencoded\r\n");
requestHeaders += _T("Content-Length: 286\r\n");
requestHeaders += _T("\r\n");
requestBody =_T("phone_bill%5Bcityin%5D=66phone_bill%5Bregion%5D=68phone_bill%5Bphone%5D=2430729");
requestBody += _T("&phone_bill%5Bsurname%5D=%D0%9F%D0%B8%D0%B2%D0%BE%D0%B2%D0%B0%D1%80");
requestBody += _T("&op=%D0%9F%D0%BE%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D1%8C");
requestBody += _T("&form_build_id=form-5ceab7c66901c31dbcde5f5c272db526&form_id=beltelirc_form_individual");
crequestBody = requestBody;
crequestHeaders = requestHeaders;
m_browser[4].Navigate(Url,NULL,NULL,crequestBody,crequestHeaders);
m_cphone.SetSel(0,-1);
m_cphone.SetFocus();
The browser thinks for a long time and then displays a message that has been found that page.
I’m sure that was correct HTTP POST-request.
Here is my program:
http://hotfile.com/dl/133078829/779721f/MInetBrowser.zip.htmlThere is a tab "Даведка аб запазычанасцi" it should display the page with the results after entering information and clicking on the button "Запазычанасць" (6 digit number)
processing code is in the procedure:
void CMInetBrowserDlg:: OnBnClickedIrc ()
In it I raised his hard data for your phone number