download a file by a direct link using QNetworkAcessManager download a file by a direct link using QNetworkAcessManager curl curl

download a file by a direct link using QNetworkAcessManager


Have you tried to construct QNetworkRequest as:

 QNetworkRequest(QUrl(Link))

without 'toEncoded'?

According to example here, you need to use QUrl::fromEncoded to conscruct QUrl from encoded url, or simply skip all the manipulations.


I solve the problem but because I have a little experience in web development I don't know why this happend
I solve it by when I download the file from normal web browser firefox or any or using Internet download manager application the Link is change
from :

http://www.proz.com/ht/profile_resources/009424_r57075c01ae812.pdf

to :

http://cdn3.proz.com/profile_resources/009424_r57075c01ae812.pdf

so when I copy the second link it can be downloaded now from my application or using Curl but don't know an explanation to that so if anyone can help and explain this why is this happened and the link change when I put it in internet download manager and give me the new link I will appreciate
this how i solve the problem but with no explain why this happened