LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IWebBrowser Headers

Hi

 

I'b creating a login form that uses Active-X IE

 

Alll going well however I need to add headders to the Navigate method, has anyone done this?

 

Thanks in advance

0 Kudos
Message 1 of 4
(3,299 Views)

The Navigate method expects a variant of type VT_BSTR for the headers input according to the documentation: https://msdn.microsoft.com/en-us/library/aa752133(v=vs.85).aspx

 

As far as I can tell, VT_BSTR is just a string? So maybe you can just wire a set of headers in the same format as HTTP - lines of texts with something similar to:

 

 

Cache-control: no-cache
Connection: keep-alive

 

If you have access to a webserver, you should be able to check what headers are received. Note that it only adds to the regular headers sent by the IE browser control.

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 4
(3,256 Views)

Thanks Sam

 

I think your right, I ought to be able to test this today, I'll let you know how I go.

 

Cheers

 

Kurt

0 Kudos
Message 3 of 4
(3,227 Views)

It was sinmple in the end so just send in a string like

 

X-Client: T123
X-Client-Machine: 123-456-789
0 Kudos
Message 4 of 4
(3,167 Views)