BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-21-2009, 02:12 AM   #1
Sunil Sharma
New Member
 
Join Date: Sep 2009
Model: 8830
PIN: N/A
Carrier: student
Posts: 6
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
ptys
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: none
PIN: N/A
Carrier: none
Posts: 26
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Cisco CP-8811-K9 Unified Office IP VoIP PoE Business Phone w/ Stand & Handset picture

Cisco CP-8811-K9 Unified Office IP VoIP PoE Business Phone w/ Stand & Handset

$14.99



"NEW" RingCentral Polycom VVX 311 6-Line VoIP IP SIP Business Media Phone

$12.95



Fortinet FON-570 VoIP Phone - Corded picture

Fortinet FON-570 VoIP Phone - Corded

$30.00



Allworx 9212L VoIP IP Business Telephone W/ Backlit Display - Black picture

Allworx 9212L VoIP IP Business Telephone W/ Backlit Display - Black

$19.99



Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone picture

Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone

$14.99



VoIP-GSM Topex VoiBridge picture

VoIP-GSM Topex VoiBridge

$250.00







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