Commit Graph

27 Commits

Author SHA1 Message Date
Greg Neagle fda740c046 Merge pull request #537 from mkuron/patch-1
Set User-Agent header in HTTP requests
2015-12-09 11:36:46 -08:00
Michael Kuron 918ebc64e4 Fix wrong line break 2015-11-19 09:52:26 +01:00
Michael Kuron 6f0a10f1da Cache default user agent 2015-11-19 09:48:52 +01:00
Michael Kuron 0bc12e57bf Python and CFNetwork version in User-Agent 2015-11-18 10:29:59 +01:00
Samuel Keeley 5c12185da4 Replace http://www.apache.org/licenses/LICENSE-2.0 with https://www.apache.org/licenses/LICENSE-2.0 2015-11-13 20:35:24 -08:00
Michael Kuron 088302be1d User-Agent header if other headers are specified 2015-11-13 15:35:29 +01:00
Michael Kuron d1f9475c54 header_dict_from_list documentation 2015-11-13 15:07:53 +01:00
Michael Kuron 4d36b6afb1 Set User-Agent header in HTTP requests
Previously Munki only set a User-Agent header on requests made from the appleupdates.py code. Everything else (catalog, manifest, package downloading) reported something like `"Python/2.7.5 CFNetwork/673.6 Darwin/13.4.0 (x86_64) (VMware7%2C1)"` to the server.
2015-11-13 14:54:54 +01:00
Graham Gilbert effe971249 Preference to Follow HTTP Recirects 2015-10-23 10:33:20 +01:00
Greg Neagle 423ec8b790 PyLint cleanup: replace all unused_foo variables with dummy_foo variables to make PyLint happy 2014-10-26 11:42:33 -07:00
Greg Neagle 38ebbf79ec Move more code from makekeychain to munkilib.keychain; attempt to build keychain on demand; should not need to run makekeychain at all 2014-10-22 11:59:32 -07:00
Greg Neagle e232c1b955 New attempt to use NSURLConnection + keychain to replace curl 2014-10-15 16:39:38 -07:00
Greg Neagle fddd138000 Bumping version to 1.0.0. Updated copyright dates. 2014-01-10 08:20:15 -08:00
Justin McWilliams ddfedc5e36 Display and log HTTP headers when package downloads fail. 2013-11-25 12:25:56 -05:00
Greg Neagle 6e3555820a Fix for curl buffering headers output in Mavericks, causing progress display not to function. 2013-11-15 12:14:31 -08:00
Michael Lynn 468924f2b3 Allow changing curl path for 10.9 curl client-side cert workaround 2013-11-07 14:21:19 -08:00
Greg Neagle 97d0d34f9b Initial support for checking for available licensed seats for uninstalled optional_installs 2013-07-16 15:21:29 -07:00
Greg Neagle 4b71ace130 Updated copyright info on all files with copyright info. 2013-01-28 11:55:09 -08:00
Rob Middleton d73bb1370c Keep parsing stdout after curl exits. Small downloads caused fetch.curl to stop looping before the ETag header was read. Thus the ETag xattr was often not written for small fast downloads. (Fix for issue 208, 204, 161) 2012-11-08 10:32:28 +11:00
Greg Neagle 34ab750460 Changes to allow curl to follow redirects when retreiving an Apple sucatalog; this is needed to support Lion Server's Software Update service. 2012-02-14 16:51:34 -08:00
Greg Neagle 5651b2a9a4 appleupdates.py now sets User-Agent header; munki-specific cert and header stuff moved to updatecheck; tests updated 2011-12-22 14:01:27 -08:00
Greg Neagle 7160c4d176 Move a couple more functions from updatecheck.py to fetch.py 2011-12-21 15:02:36 -08:00
Greg Neagle 0c17cc4378 Complete refactor of fetch.py/updatecheck.py 2011-12-21 14:55:44 -08:00
Greg Neagle b6436114cd Merge munkicommon.display_status_* changes from branch master; include fetch.py 2011-12-21 11:33:50 -08:00
Greg Neagle 2fc08a0f49 Merge use of x-download-size header into fetch.py:curl 2011-12-21 10:11:46 -08:00
Greg Neagle 6c86d2ecdc More work on fetch.py? 2011-10-27 08:39:53 -07:00
Greg Neagle 821e9072cc Beginning of refactor for getResource/curl methods 2011-09-29 16:24:23 -07:00