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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:56:36+00:00 2026-06-01T17:56:36+00:00

For a web API I’m developing I want to do something similar to Facebook

  • 0

For a web API I’m developing I want to do something similar to Facebook Graph API. A user can invite another user. To accept or reject the invitation, the other user needs to do an empty POST to:

/invitation/<invitationId>/accepted

or

/invitation/<invitationId>/rejected

However, this is not working for me as, when I POST empty data, PHP (or Apache?) returns the following error:

Request entity too large!

The POST
method does not allow the data transmitted, or the data volume
exceeds the capacity limit.

Obviously this is not true since the POST data is empty (I double-checked in Firebug). So my questions are:

  • Does the HTTP protocol allow POSTing empty data? If it doesn’t I guess I’ll just post some dummy data but I’d rather avoid this kind of hack.

  • If it is allowed, how can I make Apache/PHP allow the request?

  • 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-01T17:56:37+00:00Added an answer on June 1, 2026 at 5:56 pm

    I guess that you want to do some kind of a RESTful api, and that’s why you need to send post with no data.

    Apache/php should allow you to send empty post data, the restrictions must be imposed by some server configurations of the framework you are using

    you can test this with this simple file:

    <?php
    
    echo '<h2>This page was requested using ' . $_SERVER['REQUEST_METHOD'] . '</h2>';
    echo '<pre>';
    print_r($_POST);
    echo '</pre>';
    ?>
    <form action="" method="post">
        <input type="submit" value="Request this page using POST" />
    </form>
    

    You will see that the script detects the post request (using REQUEST_METHOD from the _SERVER superglobal) even if the _POST array is empy

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

Sidebar

Related Questions

I am looking to provide a Web API similar to Facebook's FQL interface. https://developers.facebook.com/docs/reference/fql/
Consider a web service written in ASP.NET Web API to accept any number files
I'm developing a Web API, and one of the test I came up with
I am developing a web api using WCF Web Api preview 5. At the
I have a WCF Web Api Restful webservice. I want every single service call
I'm using WCF Web API. I want to prevent flooding on method calls. I've
I have a web API that I want to allow any domain to submit
I have some Web API methods that I want to write unit tests for.
We've developed an open web API using Apache and mod_perl, where you can pass
I am developing a web API with 10 tables or so in the backend,

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.