Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User mind_freak's Avatar
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    271
    hi
    i am sending a url request .....an i want to know that whether it is needed to send the agent string with the request .....??
    even if its not needed then if possible let me know a peace of code for agent string with url request header...
    Last edited by mind_freak; 2010-04-06 at 13:11.
    Regards
    Viral Parmar

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    QNetworkAccessManager is using "Mozilla/5.0" string by default.
    You can use QNetworkRequest::setRawHeader() to change default User Agent:
    Code:
    QNetworkRequest request;
    request.setRawHeader("User-Agent", "MyOwnBrowser 1.0");

  3. #3
    Registered User mind_freak's Avatar
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    271
    hey divanov

    what actually i am doing is to get play the youtube video,But not the default format that i am getting ....Actually in youtube.com if we process the URL we can extract .mp4 file from youtube .....soo you have any idea regarding link processing...??

    And thanks for reply ....i was also hoping the same..
    Regards
    Viral Parmar

Similar Threads

  1. User Agent String
    By shankx in forum Symbian Web Runtime
    Replies: 1
    Last Post: 2009-05-25, 08:31
  2. C++ 學習程序2
    By hanwen813 in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 32
    Last Post: 2009-04-02, 09:10
  3. Getting user agent string using MIDP
    By yair.zaslavsky in forum Mobile Java General
    Replies: 3
    Last Post: 2006-05-10, 20:14
  4. a question about the user agent string
    By jackchang1@gmail.com in forum Mobile Java General
    Replies: 3
    Last Post: 2005-09-19, 12:06
  5. D211 new linux driver 1.04 not working !!
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-12, 08:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved