I\'m sending a request to a Sinatra application by this:
curl -X POST --header \"MyHeader: 123444\" http://localhost:9292/test -d \"\"
How
Have you tried adding HTTP to the header name? So it would be request.env["HTTP_ MyHeader"] This is part of the rack spec.
request.env["HTTP_ MyHeader"]