diff --git a/lib/browsermob/proxy/client.rb b/lib/browsermob/proxy/client.rb index 160880a..326ef1e 100644 --- a/lib/browsermob/proxy/client.rb +++ b/lib/browsermob/proxy/client.rb @@ -34,6 +34,7 @@ def initialize(resource, host, port) # client.new_har("page-name", :capture_headers => true) # client.new_har(:capture_headers => true) # client.new_har(:capture_content => true) + # client.new_har(:capture_cookies => true) # client.new_har(:capture_binary_content => true) # @@ -47,6 +48,7 @@ def new_har(ref = nil, opts = {}) params[:initialPageRef] = ref if ref params[:captureHeaders] = true if opts[:capture_headers] + params[:captureCookies] = true if opts[:capture_cookies] params[:captureContent] = true if opts[:capture_content] if opts[:capture_binary_content]