On a note HTTP spec says that headers are case insensitive, we have a need to call a service which is having the case sensitive headers.
Below is my code
require 'uri'
require 'net/http'
require 'openssl'
url = URI("Service URL")
http = Net::HTTP::Proxy('127.0.0.1', '8888').new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Post.new(url)
request["content-type"] = 'text/xml'
request["charset"] = 'utf-8'
request["accept"] = 'text/xml'
request["host"] = 'abc.com'
request["HMACSignature"] = 'dsfsdfsdf'
response = http.request(request)
puts response.read_body
the custom header is being receiving as Hmacversion.
I have also tried this but it is not working.
Is there any work around for this