set request header in CONNECT request to (https) proxy server?

Hi -

I apologize in advance if this is an elementary question; I have
searched the docs and the list and haven't found an answer yet.

I understand how one can modify the outgoing request to add headers by
monitoring the http-on-modify-request topic; this is well documented.
What I can't figure out, though, is how to add a request header that
is sent to the proxy server.  Obviously for non-HTTPS traffic, a
request to the proxy server looks pretty similar to a regular HTTP
request, so the proxy server could extract my custom header.  With
HTTPS traffic, however, we have just a CONNECT request and a couple of
headers that Firefox adds (User-Agent and Proxy-Connection).   What I
want to do is add a header to *that* method, since my proxy server is
not able to inspect the subsequent [encrypted] request contents.

Thanks in advance!

Hans
0
Hans
2/20/2009 12:12:14 PM
mozilla.dev.tech.xpcom 1345 articles. 0 followers. Post Follow

0 Replies
741 Views

Similar Articles

[PageSpeed] 36

Reply:

Similar Artilces:

superreview requested: [Bug 66057] Proxy: $http_proxy should influence proxy settings : [Attachment 242611] Merged in Josh's requested updates from bug 125995
Robert O'Callahan (Novell) <roc@ocallahan.org> has asked Christian Biesinger (:bi) <cbiesinger@gmx.at> for superreview: Bug 66057: Proxy: $http_proxy should influence proxy settings https://bugzilla.mozilla.org/show_bug.cgi?id=66057 Attachment 242611: Merged in Josh's requested updates from bug 125995 https://bugzilla.mozilla.org/attachment.cgi?id=242611&action=edit ------- Additional Comments from Robert O'Callahan (Novell) <roc@ocallahan.org> still needs biesi love ...

superreview requested: [Bug 362043] XMLHttpRequest should set a charset in the Content-Type request header
Ryan Jones <sciguyryan@gmail.com> has asked Peter Van der Beken <peterv@propagandism.org> for superreview: Bug 362043: XMLHttpRequest should set a charset in the Content-Type request header https://bugzilla.mozilla.org/show_bug.cgi?id=362043 Attachment 260524: Possible patch v1 https://bugzilla.mozilla.org/attachment.cgi?id=260524&action=edit ------- Additional Comments from Ryan Jones <sciguyryan@gmail.com> Possible patch v1 ...

superreview requested: [Bug 222388] Set initial SMTP server setting to "Always Use Deafult SMTP Server" instead of specific SMTP server : [Attachment 134109] patch v2
David Bienvenu <bienvenu@nventure.com> has asked David Bienvenu <bienvenu@nventure.com> for superreview: Bug 222388: Set initial SMTP server setting to "Always Use Deafult SMTP Server" instead of specific SMTP server http://bugzilla.mozilla.org/show_bug.cgi?id=222388 Attachment 134109: patch v2 http://bugzilla.mozilla.org/attachment.cgi?id=134109&action=edit ------- Additional Comments from David Bienvenu <bienvenu@nventure.com> Asking Neil for r= ...

superreview requested: [Bug 362043] XMLHttpRequest should set a charset in the Content-Type request header #2
Ryan Jones <sciguyryan@gmail.com> has asked Peter Van der Beken <peterv@propagandism.org> for superreview: Bug 362043: XMLHttpRequest should set a charset in the Content-Type request header https://bugzilla.mozilla.org/show_bug.cgi?id=362043 Attachment 260588: Possible patch v1.1 https://bugzilla.mozilla.org/attachment.cgi?id=260588&action=edit ------- Additional Comments from Ryan Jones <sciguyryan@gmail.com> I should have defaulted |charset| too UTF-8 if there are problems so we don't end up with |;charset=| appended. ...

The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing.
I'm not sure what this error is referring to. I've built a report and it runs in the IDE in preview mode, however when I try to deploy it, I get this error message.   Thanks. Doug   ...

superreview requested: [Bug 382947] XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset
Ryan Jones (mostly back) <sciguyryan@gmail.com> has asked Peter Van der Beken <peterv@propagandism.org> for superreview: Bug 382947: XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset https://bugzilla.mozilla.org/show_bug.cgi?id=382947 Attachment 267006: Patch v1 https://bugzilla.mozilla.org/attachment.cgi?id=267006&action=edit ------- Additional Comments from Ryan Jones (mostly back) <sciguyryan@gmail.com> Patch attempt v1 ...

superreview requested: [Bug 382947] XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset #3
Ryan Jones <sciguyryan@gmail.com> has asked Peter Van der Beken <peterv@propagandism.org> for superreview: Bug 382947: XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset https://bugzilla.mozilla.org/show_bug.cgi?id=382947 Attachment 270717: Patch v3.1 https://bugzilla.mozilla.org/attachment.cgi?id=270717&action=edit ------- Additional Comments from Ryan Jones <sciguyryan@gmail.com> Patch v3.1 Fixed a small error in the last patch. ...

superreview requested: [Bug 382947] XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset #2
Ryan Jones <sciguyryan@gmail.com> has asked Peter Van der Beken <peterv@propagandism.org> for superreview: Bug 382947: XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset https://bugzilla.mozilla.org/show_bug.cgi?id=382947 Attachment 270716: Patch v3.0 https://bugzilla.mozilla.org/attachment.cgi?id=270716&action=edit ------- Additional Comments from Ryan Jones <sciguyryan@gmail.com> Patch v3.0 Sets the charset data information for everything but streams. ...

superreview requested: [Bug 382947] XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset #4
Ryan Jones (mostly back) <sciguyryan@gmail.com> has asked Peter Van der Beken <peterv@propagandism.org> for superreview: Bug 382947: XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset https://bugzilla.mozilla.org/show_bug.cgi?id=382947 Attachment 267011: Patch v2 https://bugzilla.mozilla.org/attachment.cgi?id=267011&action=edit ------- Additional Comments from Ryan Jones (mostly back) <sciguyryan@gmail.com> Patch v2 Same as patch v1 but also does as Wladimir suggested. ...

superreview requested: [Bug 50380] Proxy: Option to set all servers to the same hostname : [Attachment 135971] patch v3
Jerry <jerry.tan@sun.com> has asked Brian Ryner (away until Dec 30) <bryner@brianryner.com> for superreview: Bug 50380: Proxy: Option to set all servers to the same hostname http://bugzilla.mozilla.org/show_bug.cgi?id=50380 Attachment 135971: patch v3 http://bugzilla.mozilla.org/attachment.cgi?id=135971&action=edit ...

superreview requested: [Bug 125995] Proxy: Take settings from Network Preferences [Mac OS X] : [Attachment 313576] Mac OSX implementation of system proxy settings
Robert O'Callahan (:roc) (reduced activity March 18 to April 9) <roc@ocallahan.org> has asked Robert O'Callahan (:roc) (reduced activity March 18 to April 9) <roc@ocallahan.org> for superreview: Bug 125995: Proxy: Take settings from Network Preferences [Mac OS X] https://bugzilla.mozilla.org/show_bug.cgi?id=125995 Attachment 313576: Mac OSX implementation of system proxy settings - #2 https://bugzilla.mozilla.org/attachment.cgi?id=313576&action=edit ------- Additional Comments from Robert O'Callahan (:roc) (reduced activity March 18 to April 9) <roc@o...

superreview requested: [Bug 125995] Proxy: Take settings from Network Preferences [Mac OS X] : [Attachment 313868] Mac OSX implementation of system proxy settings
H=C3=A5kan Waara <hwaara@gmail.com> has asked Robert O'Callahan (:roc) (red= uced activity March 18 to April 9) <roc@ocallahan.org> for superreview: Bug 125995: Proxy: Take settings from Network Preferences [Mac OS X] https://bugzilla.mozilla.org/show_bug.cgi?id=3D125995 Attachment 313868: Mac OSX implementation of system proxy settings - #4 https://bugzilla.mozilla.org/attachment.cgi?id=3D313868&action=3Dedit ------- Additional Comments from H=C3=A5kan Waara <hwaara@gmail.com> Good work= ...

superreview requested: [Bug 125995] Proxy: Take settings from Network Preferences [Mac OS X] : [Attachment 314082] Mac OSX implementation of system proxy settings
James Bunton <jamesbunton@fastmail.fm> has asked for superreview: Bug 125995: Proxy: Take settings from Network Preferences [Mac OS X] https://bugzilla.mozilla.org/show_bug.cgi?id=125995 Attachment 314082: Mac OSX implementation of system proxy settings - #6 https://bugzilla.mozilla.org/attachment.cgi?id=314082&action=edit ------- Additional Comments from James Bunton <jamesbunton@fastmail.fm> Sorry, I obviously didn't "get" the flags :) Changes: * Flattened out Init() * mContext needs to be around for the life of mSystemDynamicStore * break in...

superreview requested: [Bug 125995] Proxy: Take settings from Network Preferences [Mac OS X] : [Attachment 314082] Mac OSX implementation of system proxy settings
James Bunton <jamesbunton@fastmail.fm> has asked Robert O'Callahan (:roc) (reduced activity March 18 to April 9) <roc@ocallahan.org> for superreview: Bug 125995: Proxy: Take settings from Network Preferences [Mac OS X] https://bugzilla.mozilla.org/show_bug.cgi?id=125995 Attachment 314082: Mac OSX implementation of system proxy settings - #6 https://bugzilla.mozilla.org/attachment.cgi?id=314082&action=edit ...

Web resources about - set request header in CONNECT request to (https) proxy server? - mozilla.dev.tech.xpcom

User talk:Sodacan/Requests - Wikipedia, the free encyclopedia
Graphic requests, all welcome will complete as soon as humanly possible, please be patient. Thank you, Sodacan P.S. No personal or private stuff, ...

Quebec Rejects Ottawa's Request To Halt Right-To-Die Law
The federal government is preparing its own legislation on the issue. Quebec will forge ahead with the province's right-to-die law despite a ...

Feature Request: Logic Pro for iPad
Feature Request is a new regular 9to5Mac series where authors offer their opinion on how to improve popular hardware or software products. With ...

Garry McCarthy fired; Chicago police superintendent resigns at Mayor Emanuel's request
Garry McCarthy resigned Tuesday morning as superintendent from the Chicago Police Department at the request of Chicago Mayor Rahm Emanuel.

"When Palestinian artist Ashraf Fayadh was tried last year on blasphemy-related charges, the Saudi judges ...
"Instead, he was sentenced to 800 lashes and four years in prison over a book of poetry he wrote and for allegedly having illicit relations with ...

Brazil's Lower House Head Cunha Accepts Impeachment Request
Brazil's Lower House Head Cunha Accepts Impeachment Request Bloomberg Mark Zuckerberg and his wife pledged to give away virtually all of their ...

Swiss arrest 2 more FIFA officials on U.S. request
Arrests come as American investigation into corruption at highest level of international soccer widens

Prince Harry goes barefoot in South Africa, refuses selfie requests: would you hit it?
Prince Harry’s South African tour continues unabated. He still hasn’t messed up in any real way, which is great. You know if he made any kind ...

Here’s Why Colombia Just Denied A US Extradition Request For First Time
Here’s Why Colombia Just Denied A US Extradition Request For First Time

Midday open thread: How we spend our time; student reporter billed $8,000 for FOIA requests
Today’s comic ​ by Matt Fiore is The blood never dries : What’s coming up on Sunday Kos … We are more afraid than ever of gun violence. The ...

Resources last updated: 12/5/2015 7:35:50 PM