I am consuming a restful resource from a remote system that requires a
custom header to post.
I'm using something along these lines
input = {"bodyvalue1" => "one","bodyvalue2" => "two","bodyvalue3" =>
"three","bodyvalue4" => "four"}
body = input.to_param
headers["X-TheRequiredApplicationKey"] =
"ThisIsAReallyGreatApplicationKey"
headers["X-TheRequiredUserKey"] = "ThisIsAReallyGreatUserKey"
uri = "/users/1234/store/orders"
resp = connection.post(uri,body,headers)
I'm not sure, but I suspect that the way that headers are handled for
connection.post aren't working they way they should.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---