Skip to main content
Home
X-notifier

Main navigation

  • Home
  • Forums
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Old forums
  4. X-notifier 3.x for Firefox (deprecated)

How to modify Content-Type from init() function?

By Barney , 5 February 2015

HI.

 

I'm trying to modify the content-type of the login Request from the init() function in my script. The server I'm trying to connect need this. I have to set it to "application/x-www-form-urlencoded"

 

Is it possible to do? What method / function should I use?

 

Thanks for your time!! ;)

 

 

Forums
X-notifier 3.x for Firefox (deprecated)

LA

11 years 7 months ago

Just in case you still need

Just in case you still need an answer - 

var aHeaders = {"some-header": "some-value", "content-type": "application/x-www-form-urlencoded"}; 

this.getHtml("http://example.com", aPostData, aHeaders, "post");

But I think "post" and "application/x-www-form-urlencoded" are applied by default, if you pass aPostData.

  • Log in or register to post comments
  • Neo can't see my Yahoo accounts unless I'm logged in
  • X-notifier Neo is back!
  • Default check interval not work
  • Delete X-notifier account
  • Yahoo Mail not working with X-Notifier Neo
More
  • Create new account
  • Reset your password
Powered by Drupal