Hello,
Any progress on this one? I see related issue here:
https://code.google.com/p/chromium/issues/detail?id=60101
Thanks!
=)
~ elf Pavlik ~
--
(living strictly moneyless already for over 2 years)
http://wwelves.org/perpetual-tripper
http://moneyless.info
http://hackers4peace.net
Excerpts from Arne Roomann-Kurrik's message of 2010-04-28 18:28:04 +0000:
> Hi,
>
> Currently extensions don't support modifying HTTP requests. There have
> been a few requests for this feature, though - please star
> http://crbug.com/37280 in order to get notified about any changes.
>
> ~Arne
Hello,
Any progress on this one? I see related issue here:
https://code.google.com/p/chromium/issues/detail?id=60101
I've been trying to modify http headers with the webRequest API's
onBeforeSendHeaders method, using Chromium 18.0.975.0 (Build 114920).
When I pass the "requestHeaders" opt_extraInfoSpec, the returning
value of the function does not seem to be used, i.e when trying this :
var rh = [{name:'someheader',value:'foo'}];, return rh;, then the
headers sent are still the ones from requestHeaders. Modifying and
returning requestHeaders has no effect either.
If I set opt_extraInfoSpec to "blocking", then I can return my custom
rh headers array. However, I loose the original request headers
present in requestHeaders, obviously because opt_extraInfoSpec is not
"requestHeaders".
I understand the request needs to be blocked (I'm modifying headers),
but how can I find the original request headers since blocking
prevents passing them to the inner details object ?
Thanks,
On 14 déc, 16:04, Dominic Battre <bat...@chromium.org> wrote:
> Hi.
>
> On Wed, Dec 14, 2011 at 3:15 PM, elf Pavlik
> <perpetual-trip...@wwelves.org>wrote:
>
> > Excerpts from Arne Roomann-Kurrik's message of 2010-04-28 18:28:04 +0000:
> > > Hi,
>
> > > Currently extensions don't support modifying HTTP requests. There have
> > > been a few requests for this feature, though - please star
> > >http://crbug.com/37280in order to get notified about any changes.
>
> > > ~Arne
>
> > Hello,
>
> > Any progress on this one? I see related issue here:
> >https://code.google.com/p/chromium/issues/detail?id=60101
>
> This is basically done. You can modify headers with the web request API.http://code.google.com/chrome/extensions/trunk/webRequest.html
Also you can set multiple options in opt_extraInfoSpec such as:
chrome.webRequest.onBeforeSendHeaders.addListener(onBeforeSendHeaders,
{urls: ["<all_urls>"]}, ["requestHeaders", "blocking"]);
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.