×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Question User Agent String

    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
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: User Agent String

    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
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Question Re: User Agent String

    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
    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
  •  
×