Add header on request

Add-in Express™ Support Service
That's what is more important than anything else

Add header on request
how to add headers on particular request? 
pa1 modi


Guest


thanks i for your feedback.
i have done as you told for add header on particular request..using e.headers="value";
but How can get assurance the header is surly set to request?

or

how can i got headers in response from request??
Posted 27 Jul, 2011 01:07:44 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Pavan.

I am afraid that I don't understand what exactly you need to achieve.
To get the header on the server side you need to use ASP.NET that works on behind of ASP pages.
Posted 27 Jul, 2011 07:45:48 Top
pa1 modi


Guest


ok, i will give you brief detail what exactly i want...?

first, i have add header on request using

for example: e.headers = "username:password";

than how can i get headers in response from server through request??
Posted 27 Jul, 2011 08:17:01 Top
pa1 modi


Guest


after add header by using e.headers property in BeforeNavigate2() like

e.headers = "username:password";

how can i get confirmation the headers is add to particular request??[/B]
Posted 27 Jul, 2011 08:23:05 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
If you set the e.Headers property, you can be 100% sure that the header data is added to the request. Please note that ASP.NET programming is out of the scope of ?Â?Ð?èAdd-in Express for IE?Â?Ð?é support.
Posted 27 Jul, 2011 08:32:20 Top
pa1 modi


Guest


ok fine as you told after set the e.Headers property, you can be 100% sure that the header data is added to the request but How can i get header data in response from request..??
Posted 28 Jul, 2011 00:38:10 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Pavan.

It seems that we misunderstand each other. If you want to get a responce via the IE object model, the answer is 'it is not possible'. If you want to process the request on the server to parse the custom header, you need to develop an ASP.NET application.

There is another way to send a request. You can use the HttpWebRequest and HttpWebResponse classes of the .NET Framework.
Posted 28 Jul, 2011 05:14:25 Top
pa1 modi


Guest


Hi Sergey,

if i am use IE object model for add header and HttpWebResponse class for get headers in response Is it works fine....??

if no than, have you any example,code or link related to HttpWebRequest and HttpWebResponse classes for add headers on request and also for get headers in response.....??
Posted 28 Jul, 2011 05:26:17 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Please visite the following web page:
http://www.codeproject.com/KB/IP/httpwebrequest_response.aspx

if i am use IE object model for add header and HttpWebResponse class for get headers in response Is it works fine....??

Where do you need to process the response? Is it the add-on or an ASP.NET page?
Posted 28 Jul, 2011 09:50:33 Top
pa1 modi


Guest


Hi Sergey,
how are you?

Where do you need to process the response? Is it the add-on or an ASP.NET page?

-actually i am work on IEtoolbar addon using addin express 2011 and VS studio 2010.
so i need headers response from server-side.

if i add the header by e.headers using BeforeNavigate2(ADXIEBeforeNavigate2EventArgs e) than how can i get the header data from server side as response ??
Posted 29 Jul, 2011 00:56:01 Top