Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8787167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:49:08+00:00 2026-06-13T21:49:08+00:00

i am new to plugin development. I was told to use Firebreath, for developing

  • 0

i am new to plugin development. I was told to use Firebreath, for developing npapi plugins, and it turned out to be very easy. Now, i wish to access the http response header of the response passed on to plugin. But i couldn’t figure out a way as their is scarce doc available for firebreath. In NPAPI tutorials, they use npstream, but i can’t figure out how to use this structure in firebreath. Any help will be highly appreciated.

Update:

void tPlugin::handleUnsolicitedStream(FB::BrowserStreamRequest& req)
{ 
 const FB::PluginEventSinkPtr sinkPtr;
 req.setEventSink(sinkPtr);
 responseHeaders = req.headers;
 FB::HeaderMap::const_iterator it = responseHeaders.begin();
 str = (*it).first + " : " + (*it).second;                   // str is a class variable
 FB::DOM::WindowPtr window = m_host->getDOMWindow();
 window->alert(str);
 str = "hello";
 window->alert(fname);
}

None of the alert box appears!

void tPlugin::onPluginReady()
{
   FB::DOM::WindowPtr window = m_host->getDOMWindow();
   window->alert(str);
}

An empty alert box appears!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:49:10+00:00Added an answer on June 13, 2026 at 9:49 pm

    If you read the source for the BrowserStreamRequest object that you are using, or even better if you read the source for where it is created, you will find that there is a headers variable on the object.

    FB::HeaderMap headers;
    

    FB::HeaderMap, of course, is defined in SimpleStreamHelper.h:

    typedef std::multimap<std::string, std::string> HeaderMap;
    

    And, to clarify, there is plenty of documentation for FireBreath; just not a lot for this particular feature, which has only been in the tree for about a month.

    Edit: From past conversations I’m pretty sure you’re already handling this, but the stream created by the browser is given to you with the BrowserStreamRequest object passed into the handleUnsolicitedStream method on your plugin object; this method isn’t overridden by your plugin by default in the fbgen template, but you can add it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very new to web development. I am currently using tablesorter jquery plugin
When I use FuzzyFinder plugin to open a new file in MacVim, it opens
I'm new to Android development, I needed to implement custom dialog plugin similar to
I'm new to plugin and WP development, so I need some help. What I'm
I'm new to jQuery plugin development and I'm interesting to know, about what's difference
I'm new to webservice development. I'm using Netbeans 7.0 with the Axis2 plugin and
I'm new to webservice development. I'm using Netbeans 7.0 with the Axis2 plugin and
I am new on mobile development, so I decided to use Phonegap to develop
I am new into WP Plugin development. I want to make a plugin which
I am developing an Eclipse plugin and I use maven to coordinate my source

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.