Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow can i dynamically get my machine ip address ? Pin
Marco M.28-Apr-04 6:17
Marco M.28-Apr-04 6:17 
AnswerRe: how can i dynamically get my machine ip address ? Pin
David Crow28-Apr-04 7:03
David Crow28-Apr-04 7:03 
AnswerRe: how can i dynamically get my machine ip address ? Pin
toxcct28-Apr-04 7:09
toxcct28-Apr-04 7:09 
AnswerRe: how can i dynamically get my machine ip address ? Pin
RNEELY28-Apr-04 8:16
RNEELY28-Apr-04 8:16 
GeneralRe: how can i dynamically get my machine ip address ? Pin
RNEELY28-Apr-04 9:09
RNEELY28-Apr-04 9:09 
QuestionFrequent open/close registry key? Pin
Gibson_66628-Apr-04 5:48
Gibson_66628-Apr-04 5:48 
AnswerRe: Frequent open/close registry key? Pin
David Crow28-Apr-04 7:10
David Crow28-Apr-04 7:10 
GeneralWeb Browser Pin
Moschous Manos28-Apr-04 5:28
Moschous Manos28-Apr-04 5:28 
Hi,

I am very new in windows programming but i want to do something to may be strange.
I want to build an application-Web Browser (or somehow extend the functionality of IE (plugin)) that in every request browser makes adding two additional headers.

for example: a request that makes IE is

GET http://www.google.com.gr/ HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-
powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwav
e-flash, */*
Accept-Language: el
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705
; .NET CLR 1.1.4322)
Host: www.google.com.gr
Proxy-Connection: Keep-Alive

I want to add two more headers(at the end):

Profile: "http://139.91.70.5/index.html1","1-]Ό╓π╦^◄_ϊ~N<°;╪║"
Profile-Diff-1: <rdf xmlns="http://www.w3.org/TR/1999/PR
-rdf-syntax-19990105#" xmlns:prf="http://www.w3.org/TR/WD-profile-vocabulary#">
<description about="Hardware"> <modifications>


a)Can i change every request that IE makes enhance it with a plugin that doing that(adding the two headers)..?

b)Can i build an application from the scratch reusing the Web Browser Control (for the the HTML parsing and rendering of the sites) and enhance my_application with this functionality i describe above..?

c)I also saw in the MSDN documentation something about Winlnet (CHTTPSESSION), but i don't know if i can use such a think.(if i am able to use it, can i change the request that leaves from my client(adding the headers) and can i parse and render the html site that the server will return to my_client and present it properly?)

Does anybody knows anything else i can do..??

Please help me...

Thanks in advance!!!


Manos Moschous
GeneralMFC application with COM objects Pin
Brian van der Beek28-Apr-04 5:01
Brian van der Beek28-Apr-04 5:01 
GeneralRe: uint32 printing problem Pin
Trollslayer28-Apr-04 5:00
mentorTrollslayer28-Apr-04 5:00 
GeneralRe: uint32 printing problem Pin
roadragedave28-Apr-04 6:14
roadragedave28-Apr-04 6:14 
GeneralRe: uint32 printing problem Pin
David Crow28-Apr-04 7:22
David Crow28-Apr-04 7:22 
QuestionPlugin for VC++ that distributes the compiling across the network? Pin
Gywox28-Apr-04 4:39
Gywox28-Apr-04 4:39 
GeneralCMDIChildWnd maximized Pin
alex.barylski28-Apr-04 4:21
alex.barylski28-Apr-04 4:21 
GeneralRe: CMDIChildWnd maximized Pin
Ryan Binns28-Apr-04 18:06
Ryan Binns28-Apr-04 18:06 
GeneralPosting messages in a SDI app Pin
Trollslayer28-Apr-04 4:15
mentorTrollslayer28-Apr-04 4:15 
GeneralRe: Posting messages in a SDI app Pin
Anonymous28-Apr-04 4:21
Anonymous28-Apr-04 4:21 
GeneralRe: Posting messages in a SDI app Pin
Trollslayer28-Apr-04 4:57
mentorTrollslayer28-Apr-04 4:57 
GeneralRe: Posting messages in a SDI app Pin
jmkhael28-Apr-04 5:02
jmkhael28-Apr-04 5:02 
GeneralModifyStyle Pin
Anthony988728-Apr-04 4:10
Anthony988728-Apr-04 4:10 
GeneralRe: ModifyStyle Pin
includeh1028-Apr-04 5:55
includeh1028-Apr-04 5:55 
GeneralCreateInstance Fails&#8230; Pin
anderslundsgard28-Apr-04 3:15
anderslundsgard28-Apr-04 3:15 
GeneralRe: CreateInstance Fails&#8230; Pin
David Crow28-Apr-04 4:34
David Crow28-Apr-04 4:34 
GeneralRe: CreateInstance Fails&#8230; Pin
anderslundsgard28-Apr-04 20:15
anderslundsgard28-Apr-04 20:15 
GeneralRe: CreateInstance Fails&#8230; Pin
David Crow29-Apr-04 2:42
David Crow29-Apr-04 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.