jlross2 Posted July 8, 2015 Report Share Posted July 8, 2015 I am trying to create an application for 7zip, but everytime I try to do an update I receive this error: 7Zip The URI prefix is not recognized. (ResponseUri: http://iweb.dl.sourceforge.net/project/sevenzip/7-Zip/15.05/7z1505-x64.exe Connection: close Accept-Ranges: bytes Content-Length: 1331823 Content-Type: application/octet-stream Date: Wed, 08 Jul 2015 15:47:58 GMT ETag: "3ad445-14526f-518881be27c80" Last-Modified: Mon, 15 Jun 2015 05:55:46 GMT Server: Apache I have also attached my xml file for viewing. I first tried to create the download from the 7zip website which threw me the same error. I then tried to do the same thing through sourceforge with the url above: http://iweb.dl.sourceforge.net/project/sevenzip/7-Zip/15.05/7z1505-x64.exe, which I can copy and paste into a web browser and it downloads the file just fine manually. I am not understand what I am doing wrong. If someone could point me in the right direction on this I would greatly appreciate it. 7zip.xml Link to comment Share on other sites More sharing options...
necrox Posted July 8, 2015 Report Share Posted July 8, 2015 Sourceforge requires both HTTP referrer and a valid user agent as far as I remember. HTTP Referrer: http://sourceforge.net User Agent e.g.: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 I prefer the following way: Download URL http://sourceforge.net/projects/sevenzip/files/7-Zip/{version}/7z{version:replace:.:}-x64.msi/download with the following regex: Problems with the download.*?href="(.+?)" And for the 'version' variable the following URL http://7-zip.org with this regex (?<=Download 7-Zip\s)[0-9.]{2,}(?=\sbeta) 7zip.xml 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