Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3302508
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:51:33+00:00 2026-05-17T20:51:33+00:00

Is there a way to dump all incoming requests to a Sinatra application in

  • 0

Is there a way to dump all incoming requests to a Sinatra application in the exact way the application receives the data? Maybe some sort of Rack middleware?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:51:34+00:00Added an answer on May 17, 2026 at 8:51 pm

    I run thin with the -D and -V flags when I want to debug ‘things’:

    $ thin start -p 3000 -R config.ru -D -V
    
    -D, --debug                      Set debbuging on
    -V, --trace                      Set tracing on (log raw request/response)
    

    If you are trying to get the raw output from a request, use the request method like:

      # app running on http://example.com/example
      get '/foo' do
        request.body              # request body sent by the client (see below)
        request.scheme            # "http"
        request.script_name       # "/example"
        request.path_info         # "/foo"
        request.port              # 80
        request.request_method    # "GET"
        request.query_string      # ""
        request.content_length    # length of request.body
        request.media_type        # media type of request.body
        request.host              # "example.com"
        request.get?              # true (similar methods for other verbs)
        request.form_data?        # false
        request["SOME_HEADER"]    # value of SOME_HEADER header
        request.referer           # the referer of the client or '/'
        request.user_agent        # user agent (used by :agent condition)
        request.cookies           # hash of browser cookies
        request.xhr?              # is this an ajax request?
        request.url               # "http://example.com/example/foo"
        request.path              # "/example/foo"
        request.ip                # client IP address
        request.secure?           # false
        request.env               # raw env hash handed in by Rack
      end
    

    See “GETTING STARTED” for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a clean way (no hardcoding) in which I can dump all the
I was wondering if there is a way to dump the state of all
I'm wondering if there's a way to dump all of the values of $this->session->userdata()
Is there a 3rd party add-on/application or some way to perform object map dumping
Is there any way to dump out a list of mapped paths in RESTEasy?
With Ruby on Rails, is there a way for me to dump my production
When using LOAD DATA INFILE, is there a way to either flag a duplicate
My goal is actually to dump all the data of a database to an
Without actually giving all the details of my query: Is there a way of
Given an application path (or NSBundle to an application, etc), is there a way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.