Class: RExchange::DavGetRequest

Inherits:
ExchangeRequest show all
Defined in:
lib/rexchange/dav_get_request.rb

Overview

Used for arbitrary SEARCH requests

Constant Summary collapse

METHOD =
'GET'
REQUEST_HAS_BODY =
false
RESPONSE_HAS_BODY =
true

Class Method Summary collapse

Methods inherited from ExchangeRequest

authenticate, exchange_request

Class Method Details

.execute(credentials, url, &b) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/rexchange/dav_get_request.rb', line 10

def self.execute(credentials, url, &b)
  begin
    options = {
            :path => url,
            :headers => {
                    'Translate' => 'f'   # Microsoft IIS 5.0 "Translate: f" Source Disclosure Vulnerability (http://www.securityfocus.com/bid/1578)
            }
    }
    response = super credentials, options
    yield response if b
    response
  rescue RException => e
    raise e
  rescue Exception => e
    raise RException.new(options[:request], response, e)
  end
end