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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:30:08+00:00 2026-05-27T10:30:08+00:00

I have implemented a web service in PHP. This service takes name/value pairs as

  • 0

I have implemented a web service in PHP. This service takes name/value pairs as input and returns JSON encoded strings.

Everything was working as expected on my local apache web servers running on mac-osx and windows 7. However, after hosting my PHP scripts on this linux based web service provider, my POST requests to the service are failing.

By backend PHP script which fails is as follows:

if (session_id() == "") {
    session_start();
}

ob_start();

$command = isset($_REQUEST["Command"]) ? $_REQUEST["Command"] : "";
if ($command == "") {
    echo("Handler Not Found: ");
    print_r($_REQUEST);
}

The output from a POST request to the url with Command=do_foo is always Handler Not Found:. It is as if the web service never receives any of the parameters I send. The value of $_REQUEST is printed as:

[PHPSESSID] => db0af76fe8028e70dc96f816d0dbe927 

If I change the invocation method to GET everything works as expected. What am I missing?

PS: I’m calling this web service in an Android app using apache.http.client.methods.HttpGet and `apache.http.client.methods.HttpGet. I have verified that the POST fails even if I send the POST request through the FireFox add-on Poster

EDIT:

  1. I have the same problem if I use the $_POST super global.

  2. I cannot ssh into my hosting server, but CPANEL is showing me that
    register_globals=off. I don’t know if that can create problems.

  • 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-27T10:30:09+00:00Added an answer on May 27, 2026 at 10:30 am

    Have a look at the ini setting variables-order or request-order. Maybe POST variables are disabled to be included in the $_REQUEST super-global.

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

Sidebar

Related Questions

I have a web service, defined(WSDL) and implemented in PHP. This one is relatively
I have a web service written in PHP, that returns JSON results. It works
I have a web service implemented in WCF. This service is only going to
I have implemented a web service(.asmx) using .NET framework that returns me a hash
I have implemented a PHP/MySQL web-service to deal with my iPhone application, and when
I have implemented a web service with server and client authentication using keytool. The
I have implemented the image upload code using jquery php in my php web
I have implemented an activity that retrieves data from a web service and display
Essentially I have to use a poorly implemented web service maintained by other programmers.
I have a php based web service that churns out a heap of data

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.