win_get_url: Add use_proxy, headers and timeout (#26612)

* win_get_url: Add use_proxy, headers and timeout

This PR includes:
- Add use_proxy parameter
- Add timeout parameter
- Add headers parameter
- Simplify logic
- Create separate CheckModified-File
- Now use -LiteralPath instead of -Path
- Clean up documentation

* win_get_url: Add use_proxy, headers and timeout

This PR includes:
- Add use_proxy parameter
- Add timeout parameter
- Add headers parameter
- Simplify logic
- Create separate CheckModified-File
- Now use -LiteralPath instead of -Path
- Clean up documentation
This commit is contained in:
Dag Wieers
2017-08-29 02:11:10 +02:00
committed by Jordan Borean
parent b84a48caef
commit 61d2201a2d
5 changed files with 296 additions and 199 deletions

View File

@@ -1,8 +1,8 @@
---
test_win_get_url_host: www.redhat.com
test_win_get_url_link: "https://{{test_win_get_url_host}}"
test_win_get_url_link: "https://{{ test_win_get_url_host }}"
test_win_get_url_invalid_link: https://www.redhat.com/skynet_module.html
test_win_get_url_invalid_path: 'Q:\Filez\Cyberdyne.html'
test_win_get_url_invalid_path_dir: 'Q:\Filez\'
test_win_get_url_path: '{{ test_win_get_url_dir_path }}\docs_index.html'
test_win_get_url_path: '%TEMP%\docs_index.html'