TheXman Posted January 14, 2023 Share Posted January 14, 2023 (edited) 1 hour ago, agivx3 said: Could you please take a look at this one too? There's a difference between getting a response code saying that a resource's location has moved (3xx) and a web server fulfilling a request for a given resource by processing the request for you (from wherever it may reside). The prior is being handled on the client-side (browser, script, etc.) and the former is handled server-side (web server, reverse proxy server, etc.). Your first URL gave a response code 302, meaning the location has temporarily moved. Your new URL gave a response code 200, meaning the request was successful, and the downloading of the file was initiated -- not a redirection (3xx). Requested URL: https://chromeenterprise.google/browser/download/?platform=WIN_MSI&channel=stable&usagestats=0 HTTP Status: 200 OK HTTP Response: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="no_page_title" value="true"/> . . . Edited January 14, 2023 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
agivx3 Posted January 15, 2023 Share Posted January 15, 2023 I unterstand the difference of the response codes. But my goal is downloading the file. The second example gives me nothing back that i could use with inetget(). My knowlegde of HTTP is too low to understand what i have to do to get it working. So i have one more question... Is it maybe possible using the winhttp.au3 for downloading the file in the sample code you created when the response code is 200? Thx for helping 🙂 Link to comment Share on other sites More sharing options...
Trong Posted January 15, 2023 Share Posted January 15, 2023 @Agivx3 Checkout: Regards, Link to comment Share on other sites More sharing options...
agivx3 Posted January 15, 2023 Share Posted January 15, 2023 Wow - Thank you very much. I'll try this out, but i think it will do it 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now