CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Location
    Nuremberg, Germany
    Posts
    4

    Http post & send returned html page to ie

    Hi!
    I need to post some Information to a web server which returns me a html page. This page should be opened in internet explorer.
    I can do it by using the WebBrowser control - navigate2(), but i don't want to create a control in my comand line application :-/
    So I tried CHttpConnection::OpenRequest(). Now I get stuck. It returns me a CHttpFile, but how to send it to ie without save it to disc before?
    Thanks in advance.

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: Http post & send returned html page to ie

    So you have a console application and you want to display a page in the browser (IE)? Why don't you create a process (for the browser) passing the right arguments for the new process?

    See CreateProcess() and ShelExecute().
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  3. #3
    Join Date
    Apr 2009
    Posts
    57

    Re: Http post & send returned html page to ie

    Yep, you can try something along these lines:

    Code:
    void InternetLink(CString Webaddress)
    {
      ::ShellExecute(NULL,NULL,Webaddress,NULL,NULL,SW_SHOWNORMAL);
    }

    ...let us know that works out for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured