Commit Graph

17 Commits (4fdeade3897a5808ccdb6eb002c4a8ebbe794811)

Author SHA1 Message Date
Dag Wieers a64fb3eebf win_get_url: Clean up and check-mode support (#21381)
* win_get_url: Clean up and check-mode support

Changes include:
- Clean up parameter handling
- Replace $result PSObject with hash

* Revert to original formatting
2017-02-23 22:26:01 -08:00
Dag Wieers 7be39ca553 Windows modules: Add -type "path" to path parameters (#20282)
This PR is based on #20164 functionality to specify the parameter type
(e.g. as done for python modules).

In this case only -type "path" has a specific meaning, as it will expand
environment variables for paths. Which is typically done on Windows.

So you can do:

  - win_copy:
      src: files/some.doc
      dest: '%UserProfile%\My Documents'
2017-01-16 11:39:58 -08:00
nitzmahone 363ff55445 StrictMode fixes for win_get_url 2016-12-08 11:24:37 -05:00
Dreamcat4 eeabebdd6c fix: win_get_url - fixes for strict-mode 2016-12-08 11:24:20 -05:00
jhawkesworth@users.noreply.github.com 63f8bdf782 Use HEAD request to determine if file should be downloaded, ensure download method is the same regardless of force mode. 2016-12-08 11:24:13 -05:00
nitzmahone 821fb6c0ab fix win_get_url var renames ala xpicio fix PR #2378
reimplements #2378 sans formatting merge conflicts
2016-12-08 11:23:58 -05:00
nitzmahone 317ea13759 win_get_url doc/strict-mode fixes
plus cleaning up from bad merge
2016-12-08 11:23:54 -05:00
T.Kuramochi dfda2e9f57 Add HTTP Proxy options
Update a document file for win_get_url.ps1.

Update add a prefix proxy_ for this variables

Update a document file for win_get_url.ps1.

Update win_get_url.ps1 20150907
2016-12-08 11:23:54 -05:00
fxfitz 61cdc2ae90 Fixed spelling mistake: missing 2016-12-08 11:23:39 -05:00
Andrew Briening bd531f87bc Show the exception messages 2016-12-08 11:23:31 -05:00
Andrew Briening a886690309 Adds basic authentication & skip certificate validation to win_get_url module 2016-12-08 11:23:29 -05:00
Chris Church 31a01305ba Set force=yes as the default, add force parameter to module docs. 2016-12-08 11:23:20 -05:00
Tal Auslander 8766641871 use ConvertTo-Bool for the force parameter 2016-12-08 11:23:19 -05:00
Tal Auslander 64f19fc4c6 stop reading from url on error 2016-12-08 11:23:19 -05:00
Tal Auslander 9c6d829991 add force parameter to win_get_url 2016-12-08 11:23:19 -05:00
Tal Auslander 26a54897a2 win_get_url re-download file only if modified 2016-12-08 11:23:19 -05:00
Michael DeHaan c7eec45b73 Restructuring. 2016-12-08 11:22:22 -05:00