Guest agnostyk Posted October 8, 2014 Report Share Posted October 8, 2014 Hello, I have a problem setting Ketarin up for downloading CDisplay Ex. The problem is, to download the exe you have to send request to 'http://www.cdisplayex.com/dl' with POST data 'os=win64' or 'os=win32'. In response you receive the file with this header: ResponseUri: http://www.cdisplayex.com/dl Content-Disposition: attachment; filename=CDisplayExWin64v1.10.29.exe Content-Length: 7099432 Content-Type: application/octet-stream Date: Wed, 08 Oct 2014 18:57:55 GMT ETag: "367f-6c5428-500c62ad9e180;5014b62dbdb4d" Last-Modified: Sat, 16 Aug 2014 21:53:26 GMT Server: Apache/2.2.16 (Debian) X-Powered-By: PHP/5.3.3-7+squeeze19 How can I set it up in Ketarin? POST data is only available in variables window. I tried to download 'http://www.cdisplayex.com/dl/CDisplayExWin64v1.10.29.exe', but it doesn't work. Link to comment Share on other sites More sharing options...
necrox Posted October 9, 2014 Report Share Posted October 9, 2014 I don't know if it works (I have to perform some tests), but as a suggestion you can try using curl to "pre-download" the file. To do this, use this line of code in your pre-command field: "{curl}" -d "{post}" "http://www.cdisplayex.com/dl/" -o "{file:directory}\{url:basefile}.{url:ext}" {curl} = global variable with name curl and value curl.exe (Place your curl.exe into the folder containing Ketarin.exe.) {post} = a variable containing your POST data. For 32-bit use os=win32 and for 64-bit use os=win64 Link to comment Share on other sites More sharing options...
Guest agnostyk Posted October 9, 2014 Report Share Posted October 9, 2014 Well, that should take care of downloading the file, but it won't notify me about updates, right? Link to comment Share on other sites More sharing options...
necrox Posted October 10, 2014 Report Share Posted October 10, 2014 You can use something like this (?<=version.*?)[0-9.]{2,} for http://www.cdisplayex.com Link to comment Share on other sites More sharing options...
Guest agnostyk Posted October 11, 2014 Report Share Posted October 11, 2014 Ok, thanks, I've just noticed I can leave the url field empty and get notified about updates based on a variable. That solved my problem. 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