|
-
May 25th, 2009, 07:43 AM
#1
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.
-
May 25th, 2009, 08:47 AM
#2
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().
-
May 25th, 2009, 11:55 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|