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 8567235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:50:08+00:00 2026-06-11T17:50:08+00:00

I have a relatively large (50K) text file being POSTed: curl -H Content-Type:text/plain -d

  • 0

I have a relatively large (50K) text file being POSTed:

curl -H "Content-Type:text/plain"  -d @system.log http://localhost:8888/

Testing using a proxy, I can see the full contents of the file are being posted.

However Express.JS sees 100:Continue in the headers, and a blank body. I have :

app.use(express.bodyParser());

enabled, BTW. Here are the headers:

{ 'user-agent': 'curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5',
  host: 'localhost:8888',
  accept: '*/*',
  'content-type': 'text/plain',
  'content-length': '55909',
  expect: '100-continue' }

req.body is empty:

{}

How can I see all the data being posted in Express.JS?

  • 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-06-11T17:50:09+00:00Added an answer on June 11, 2026 at 5:50 pm

    My guess is that node is automatically sending the 100-continue response as per the node http module docs (assuming you are using a new enough node version). What I guess is happening is just simply that the text/plain content type is not a format that bodyParser can parse into something else (as opposed to json or www-form-urlencoded). So you can get your data from the standard data event which the request will emit for each chunk of data it reads.

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

Sidebar

Related Questions

I have to remove quotes from a relatively large text file. I have looked
I have a relatively large csv/text data file (33mb) that I need to do
I have a relatively large enum wherein each member represents a message type. A
My relatively large program has a PDF help file which I have put together.
I have developed a PHP application that processes relatively large text files, and stores
I have a relatively large table (5,208,387 rows, 400mb data/670mb index), all columns i
I have this relatively large numerical application code that may run for a few
I have a relatively large database tables (just under a million rows) that has
I am relatively new to cassandra and its data model. I have a large
I have a relatively simple object with a method that makes an HTTP request.

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.