Jump to content
Sign in to follow this  

Alternative method to _inetgetsource()

Recommended Posts


Hello, I have been recently making a downloader that downloads a set of java files for an end user, one at a time, verifying the integrity of each file along the way, however I have run into a small problem. 

The files (jars) run on linux, and as such I would LOVE for my downloader to be able to run under WINE in linux, however just one of my functions does not operate under wine, the one that uses inetgetsource(), I assume because by default WINE does not include this library.


I was wondering if either 

1)There was a way to include the windows dll required to call this function in my script, and manually load it up inside my program, to enable the function to work.


2)There was an alternative method of getting the source of a webpage, that uses a different method, which may work under WINE(I can of course test the methods myself, if you are unsure).

I would really appreciate any help with this matter.



Edited by nullschritt

Share this post

Link to post
Share on other sites


Thanks for the response but don't all of the INET functions use the same DLL?

Share this post

Link to post
Share on other sites

If WinINet is not available maybe you can try WinHTTP. Find WinHttp.au3 in examples and check like this:

#include "WinHttp.au3"

Opt("MustDeclareVars", 1)

If Not _WinHttpCheckPlatform() Then
    MsgBox(48, "Caution", "WinHTTP not available on your system!")
    Exit 1

MsgBox(4o96, "Okey dokey", "WinHTTP can be used. Yay!")

;... The rest of the code




Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.