|
From: Jeov� Almeida on 2 May 2008 08:42 Hello, I'm adding online functionality (just POST and GET for HTTP at the moment) to my MFC VS2k5 app and looked for some article on this on www.codeproject.com. I've found basically two flavours: a) Using wininet b) Using just winsock Considering the code are ready and working, my questions are: a) What is advantage of each approach? b) What is de disadvantage of each approach? c) What about authentication? Basic, Digest, MD5, HMAC, "ISA PROXY SERVER" kerberos among others. Is there any class MFC provides that does or facilitate the authentication? TIA Jeova
From: AliR (VC++ MVP) on 2 May 2008 10:03 Well the disadvantage of using winsock is that you will have to do everything that the HTTP protocol does, yourself. WinINet on the other hand does alot of the work for you, specially the SSL part. If you simply want to post commands to a webserver and receive HTML back, then use WinINet. AliR. "Jeov� Almeida" <jeovaalmeida(a)yahoo.com> wrote in message news:u9VU5HFrIHA.3680(a)TK2MSFTNGP05.phx.gbl... > Hello, > > I'm adding online functionality (just POST and GET for HTTP at the moment) > to my MFC VS2k5 app and looked for some article on this on > www.codeproject.com. > > I've found basically two flavours: > a) Using wininet > b) Using just winsock > > Considering the code are ready and working, my questions are: > > a) What is advantage of each approach? > > b) What is de disadvantage of each approach? > > c) What about authentication? Basic, Digest, MD5, HMAC, "ISA PROXY SERVER" > kerberos among others. Is there any class MFC provides that does or > facilitate the authentication? > > TIA > Jeova >
From: Ajay Kalra on 2 May 2008 13:12 On May 2, 10:03 am, "AliR \(VC++ MVP\)" <A...(a)online.nospam> wrote: > Well the disadvantage of using winsock is that you will have to do > everything that the HTTP protocol does, yourself. > > WinINet on the other hand does alot of the work for you, specially the SSL > part. > > If you simply want to post commands to a webserver and receive HTML back, > then use WinINet. > Isnt it easier to use MSHTML which is written on top of WinInet? --- Ajay
From: Jeov� Almeida on 2 May 2008 13:50 Does MSHTML or WinINet have some dependency on Internet Explorer? I mean, if the user doesn't have IE installed, but Mozilla Firefox instead, will these technologies work property? "Ajay Kalra" <ajaykalra(a)yahoo.com> escreveu na mensagem news:12e37bd2-d9ec-4fd1-a7c7-d3c4a369edda(a)56g2000hsm.googlegroups.com... > On May 2, 10:03 am, "AliR \(VC++ MVP\)" <A...(a)online.nospam> wrote: >> Well the disadvantage of using winsock is that you will have to do >> everything that the HTTP protocol does, yourself. >> >> WinINet on the other hand does alot of the work for you, specially the >> SSL >> part. >> >> If you simply want to post commands to a webserver and receive HTML back, >> then use WinINet. >> > Isnt it easier to use MSHTML which is written on top of WinInet? > > --- > Ajay
From: Joseph M. Newcomer on 2 May 2008 14:27 I've never used MSHTML, but I have used WinINet, and as far as I know it is part of the core operating system, even if no explorer is installed. Note also that you should not confuse "IE installed" with "IE is the default browser". All systems come with IE installed, and if someone installs FireFox, they merely replace IE as the default browser. joe On Fri, 2 May 2008 13:50:53 -0400, "Jeov� Almeida" <jeovaalmeida(a)yahoo.com> wrote: >Does MSHTML or WinINet have some dependency on Internet Explorer? > >I mean, if the user doesn't have IE installed, but Mozilla Firefox instead, >will these technologies work property? > >"Ajay Kalra" <ajaykalra(a)yahoo.com> escreveu na mensagem >news:12e37bd2-d9ec-4fd1-a7c7-d3c4a369edda(a)56g2000hsm.googlegroups.com... >> On May 2, 10:03 am, "AliR \(VC++ MVP\)" <A...(a)online.nospam> wrote: >>> Well the disadvantage of using winsock is that you will have to do >>> everything that the HTTP protocol does, yourself. >>> >>> WinINet on the other hand does alot of the work for you, specially the >>> SSL >>> part. >>> >>> If you simply want to post commands to a webserver and receive HTML back, >>> then use WinINet. >>> >> Isnt it easier to use MSHTML which is written on top of WinInet? >> >> --- >> Ajay > Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
|
Next
|
Last
Pages: 1 2 Prev: How to Programmatecally Display Icons in CListBox Next: List of available serial ports |