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

  • Home
  • SEARCH
  • 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 9143339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:59:51+00:00 2026-06-17T09:59:51+00:00

Is it possible to have a web service accept json formatted requests without a

  • 0

Is it possible to have a web service accept json formatted requests without a content-type header?

The POST verb works great when I pass the Content-type: application/json header. If that is left off then a 400 error is thrown. I have gone through many questions on here asking why they are getting a 400 back and the answer is the content-type. So is it possible on the server side to “fill that in” on behalf of the user?

  • 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-17T09:59:52+00:00Added an answer on June 17, 2026 at 9:59 am

    It is not possible with a default .NET webstack to do so without some sort of content-header to tell it how to interpret the request. If you wanted to get into the internals of the ASP.NET stack (you can use a reflector app such as ILSpy) you might could find an intercept point, but you’ll most likely have to do some custom IIS integration to get the module to intercept the request, possibly even before the ASP.NET stack becomes involved.

    For most people it’s infinitely easier to get the JSON requesting application to introduce a header.

    In addition, I encourage you to start learning how to use Reflector to explore how these stacks work, they really are complex and large and quite extensible, at the cost of engineering (bald guess right now says an inexperienced IIS dev will need approximately 50 hours to engineer this technique, if it can be done neatly).

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

Sidebar

Related Questions

is it possible to consume web service (written in c#, ... I don't have
Is it possible to have web service references in other folders than Service References
is it possible to stop a web service from executing? I have a flex
I have set up a WCF service that will accept both JSON and XML
I was wondering if it is possible to have a RESTful web service and
I'm designing a Web-service in Azure. Is it possible to have the actual Azure
Possible Duplicate: Is Sinatra multi threaded? I have a web service that requires running
Is it possible to have a web service run on a dedicated port while
Is it possible to have a web service within an ASP.NET forms web site
I have a web service that is based on Java classes. Is it possible

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.