Jump to content

Php response failure


shalmoli

Recommended Posts

I need to set up a  Java client - PHP server framework.

When the Java client sends a request it is correctly processed by the php page. However, the response string is not read by Java.

There are no proxy issues as I have a direct route.

 

However, when I call the php page through a browser , it is correctly displayed.

 

What may be going wrong? Is it something to do with Apache?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/148786-php-response-failure/
Share on other sites

Well, I managed to solve the issue and I thought I would post the solution in case somebody else tries a similar setup.

Php script was connected to database that was throwing an exception which strangely was not reported while browsing directly. When the exception in php was handled and the output was started before the function call was made, the issue was resolved.

Link to comment
https://forums.phpfreaks.com/topic/148786-php-response-failure/#findComment-781261
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.