Set the header string information in HTTP header using "addcustomrequestheader" method

555 views
Skip to first unread message

Nitin Mali

unread,
Apr 12, 2010, 9:18:00 AM4/12/10
to Selenium Users
Hi All,

I have been tryi9ng to use this method to add headers with no success
-
Here is what I did -

1. Set a manual proxy in firefox browser-
HTTP Proxy - localhost, 4444
SSL Proxy - localhost, 4444

2. Running selenium server in proxyinjection mode-
java -jar java/selenium-server.jar -proxyInjectionMode -port 4444 -log
sel.txt


3. Code -
selenium.start("captureNetworkTraffic=true,
addCustomRequestHeader=true");
...
selenium.addCustomRequestHeader("mwb-stb-id", "9279");
selenium.addCustomRequestHeader("mwb-stb-model", "The Emulator");
selenium.addCustomRequestHeader("mwb-stb-revision", "model_0001");
selenium.addCustomRequestHeader("mwb-mms-version", "1.0");
... some other headers here...
selenium.open("http://mw-devtest.mweb.tv:9080/mms/api/DoSearch?");

But this is not working, as log shows that header is being added
twice, Please help.

Regards,
Nitin

Gergely

unread,
Jun 1, 2010, 6:57:32 AM6/1/10
to Selenium Users
Any update or help on this one??

Anybody?

Peter Gale

unread,
Sep 3, 2012, 6:19:00 AM9/3/12
to Selenium Users
Sri

This is a very old thread and I'm sure there have been many updtes to Selenim (RC?) since it was posted.

I'd suggest just starting a new thread with the specific details of your issue and someone might be able to help form there.

Peter


Date: Mon, 3 Sep 2012 02:51:03 -0700
From: s.raj...@gmail.com
To: seleniu...@googlegroups.com
Subject: [selenium-users] Re: Set the header string information in HTTP header using "addcustomrequestheader" method


Any update on this ? I am also looking for this solution ..
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/VOt9Cl6FxLgJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

rajasree s

unread,
Sep 3, 2012, 12:50:39 PM9/3/12
to seleniu...@googlegroups.com
Hi Peter,

But I did not find the response for this ...  so, Finally what was the solution ?    Sri

Peter Gale

unread,
Sep 3, 2012, 1:12:16 PM9/3/12
to Selenium Users
I didn't say that anyone had posted a solution. I just said post the specific details of your own problem in a new thread then someone may be able to help you.


Date: Mon, 3 Sep 2012 17:50:39 +0100
Subject: Re: [selenium-users] Re: Set the header string information in HTTP header using "addcustomrequestheader" method
From: s.raj...@gmail.com
To: seleniu...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages