BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-21-2009, 02:12 AM   #1 (permalink)
New Member
 
Join Date: Sep 2009
Model: 8830
PIN: N/A
Carrier: student
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting browser headers from eventOccured()

Please Login to Remove!

I am using browser field in my application. I am handling all the events that are fired by the browser field by using the method eventOccured(Event e).
From that method I can get some few headers like referrer, Content-Type(if it is a POST request), not all like Accept, Accept-Encoding, Connection, Profile etc. How can I get all these header information? I tried with urlRequestedEvent.getHeaders(), but not able to get all.
Offline  
Old 09-22-2009, 08:02 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: none
PIN: N/A
Carrier: none
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are handling a click event, and presumably you intend to send a request as a result of this click. Since you're implementing the code that sends the request and handles the response, only you know what content type this request is going to be, what encodings you accept in your response handling etc. In other words your code is in charge of the request headers, and the browser field can help you with only a few.

Quote:
Originally Posted by Sunil Sharma View Post
I am using browser field in my application. I am handling all the events that are fired by the browser field by using the method eventOccured(Event e).
From that method I can get some few headers like referrer, Content-Type(if it is a POST request), not all like Accept, Accept-Encoding, Connection, Profile etc. How can I get all these header information? I tried with urlRequestedEvent.getHeaders(), but not able to get all.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Used, working good, Advance VEL-3P32-RH-TP 277V Ballast 2-3-LAMP F32T8 F25T8 T8
$0.99
Used, working good, Advance VEL-3P32-RH-TP 277V Ballast 2-3-LAMP F32T8 F25T8 T8 picture*LOT OF 10* NEW B432IUNVHP-A Universal Ballast 120 To 277V 4 F32T8
$79.99
*LOT OF 10* NEW B432IUNVHP-A Universal Ballast 120 To 277V 4 F32T8  picture3 Psc In One Box GENERAL ELECTRIC GEM250ML5AA4-5/2 BALLAST *NEW IN BOX*
$120.0
3 Psc In One Box GENERAL ELECTRIC GEM250ML5AA4-5/2 BALLAST *NEW IN BOX* picturePathway EMERGENCY LIGHTING BALLAST FPLT TBTS SERIES 42 AC New
$124.25
Pathway EMERGENCY LIGHTING BALLAST FPLT TBTS SERIES 42 AC New picture10x OSRAM POWERTRONIC PTi 35 S Mini 35/220-240 Ballast MH 955906 *FREE SHIPPING*
$227.88
10x OSRAM POWERTRONIC PTi 35 S Mini 35/220-240 Ballast MH 955906 *FREE SHIPPING* picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.