Tuesday, 29 March 2016

How to use Modify headers for Mozilla Firefox ?


Modify headers plugin for Mozilla Firefox can be used to modify the HTTP headers.
When we request to the application using some URL, this plugin will modify the HTTP headers and make request to that application with the modified headers.

Installation
Pre-requisite
  • Mozilla Firefox

Installation steps
  • Open Mozilla Firefox browser and open Add-ons manager.
  • Search add-on "Modify Headers" and install.
  • After installation, Restart Firefox.
 
Configuring the Plugin
  1. Open the “Modify headers” in Firefox and go to Options.
  2. Configure the headers.

If you don't have the JSON header file, you can manually add hedaers one by one.
Provide header key / value and click Add.

If you already have the JSON header file, you can import it in Modify headers.
Click Import headers button and choose the JSON file to be imported.
(JSON file contains general headers used in CSRTool for authentication)
We can change the name and values of headers as per the requirement.

 
Using the Plugin

For enabling / disabling headers, open Modify headers.
In Headers section, enable the required headers and disable the unwanted headers using double click or clicking on Enable/Disable buttons.
Click OK, after the settings done.

Note: Don't enable 2 same type of headers and Don't forget to enable any mandatory header.
For checking the effect of the changed headers, clear the cookies after changing the header and check the application again.


Disabling the Plugin

Open the Add-ons in Firefox. 
Click Disable button displayed for Modify headers plugin.


Troubleshooting

Problem
I just changed some headers, but it is not reflected in the application.

Solution
Clear cookies from the browser.
  1. Go to Options - Privacy - Click “ClearNow”
  2. Go to Options - Privacy - Click “Showcookies” - Click “Remove all cookies”
  OR
  Use a Firefox plugin : Cookies Manager+ for removing cookies.



Cookies Manager+ plugin for Firefox

This plugin manages the cookies (such as, removing cookies), which are residing on the browser Firefox.
Instead of removing cookies from menu options of Firefox, you can use this plugin.
Search Add-on “Cookies Manager+” and install it.

Removing cookies
Open Cookie manager+, select cookies to be removed (To select all, click the checkbox at the column) and click Delete button.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.