Class: CurlPostDownloadStrategy

Inherits:
CurlDownloadStrategy show all
Defined in:
Library/Homebrew/download_strategy.rb

Overview

Download via an HTTP POST. Query parameters on the URL are converted into POST parameters

Instance Attribute Summary

Attributes inherited from CurlDownloadStrategy

#mirrors, #tarball_path, #temporary_path

Attributes inherited from AbstractDownloadStrategy

#cached_location, #meta, #name, #resource, #shutup, #version

Instance Method Summary collapse

Methods inherited from CurlDownloadStrategy

#cached_location, #clear_cache, #fetch, #initialize

Methods inherited from AbstractFileDownloadStrategy

#stage

Methods inherited from AbstractDownloadStrategy

#clear_cache, #expand_safe_system_args, #fetch, #initialize, #ohai, #puts, #quiet_safe_system, #safe_system, #shutup!, #source_modified_time, #stage

Methods included from FileUtils

#make, mkdir, mktemp, #old_mkdir, #old_ruby, #ruby, #scons, #xcodebuild

Constructor Details

This class inherits a constructor from CurlDownloadStrategy

Instance Method Details

#_fetchObject



427
428
429
430
# File 'Library/Homebrew/download_strategy.rb', line 427

def _fetch
  base_url, data = @url.split("?")
  curl_download base_url, "--data", data, to: temporary_path
end