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...
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
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");
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