×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    10

    How to change User Agent and open a Https page using BrCtlInterface on S60

    Hi,

    I'm doing an application that have to open a WebView to show some pages made by my client.
    I used the BrCtlSample example from the SDK and is worked greatfully, but know I have two issues:

    1) The server have to receive a specific user agent from my app to retrieve the correct page. So I want to know if I can change the user agent used by the browser?

    2) One of the pages uses https and when I tested this page using the N97 device or the N97 emulator the page wasn't displayed and even the connection request wasn't showed. There is some special class that I have to implement to accept https?

    My application have to work on n97 and n95 devices, so if there is different approaches for each device, please let me know.

    Thanks,

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,560

    Re: How to change User Agent and open a Https page using BrCtlInterface on S60

    AFAIK, you cannot change the user-agent string for the built-in browser easily, and especially not for a specific connection/session.

    Maybe you should use a specific URL parameter, instead? Or just use a different URL for your app entirely. Both require adjustments to the implementation on the server side, of course.

    Alternatively, you could write your own browser as part of your application, and send whatever user-agent you wish then. Not the easiest approach, though.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    10

    Re: How to change User Agent and open a Https page using BrCtlInterface on S60

    Thanks petrib,

    but I think I don't have time or knowledge to build my own browser. So I will have to think in another way.

    But what do you think about I couldn't open https pages on my browser?

  4. #4
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: How to change User Agent and open a Https page using BrCtlInterface on S60

    Quote Originally Posted by Lucchesi View Post
    2) One of the pages uses https and when I tested this page using the N97 device or the N97 emulator the page wasn't displayed and even the connection request wasn't showed. There is some special class that I have to implement to accept https?
    even I have the same problem with https:// url's.
    My Browser capabilities are :
    /** ECapabilityLoadHttpFw
    * Allows network access for HTTP requests.
    * If this option is not set, HTTP requests will fail.
    */
    iBrCtlCapabilities = TBrCtlDefs::ECapabilityDisplayScrollBar | TBrCtlDefs::ECapabilityLoadHttpFw |
    TBrCtlDefs::ECapabilityGraphicalHistory | TBrCtlDefs::ECapabilityGraphicalPage;
    How to load "https" pages ?
    Regards,
    Sunitha.M

  5. #5
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: How to change User Agent and open a Https page using BrCtlInterface on S60

    any clue for not able to downloading "https" pages ?
    Regards,
    Sunitha.M

  6. #6
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: How to change User Agent and open a Https page using BrCtlInterface on S60

    Is there any alternate way to download "https" pages ?
    Regards,
    Sunitha.M

  7. #7
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Bangalore, India
    Posts
    454

    Re: How to change User Agent and open a Https page using BrCtlInterface on S60

    any more updates on this Issue ( Loading "https" pages ) ?
    Regards,
    Sunitha.M

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How to change User Agent and open a Https page using BrCtlInterface on S60

    For downloading, an own HTTP GET implementation with RSocket+CSecureSocket could work. Just the data also has to be parsed somehow after that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×