shan169 Posted July 31, 2007 Share Posted July 31, 2007 Hi, I tried to connect to a php page from java using HttpURLConnection, but it is throwing an error... says "Connection refused". I can't figure out the problem... How can i accept any connections to my PHP page? Looking for help, Thanx in advance... Quote Link to comment https://forums.phpfreaks.com/topic/62619-accepting-httpurlconnection-from-java-in-php/ Share on other sites More sharing options...
btherl Posted July 31, 2007 Share Posted July 31, 2007 This sounds like a java issue to me.. if you can view your php script in a browser, then it's definitely a java issue. Quote Link to comment https://forums.phpfreaks.com/topic/62619-accepting-httpurlconnection-from-java-in-php/#findComment-311703 Share on other sites More sharing options...
shan169 Posted July 31, 2007 Author Share Posted July 31, 2007 Thanx for the reply dude, ya i can my script wen i open the PHP file in the browser, as i hav an if statement to check if there is any input data, it prints "no data"... Quote Link to comment https://forums.phpfreaks.com/topic/62619-accepting-httpurlconnection-from-java-in-php/#findComment-311725 Share on other sites More sharing options...
btherl Posted August 1, 2007 Share Posted August 1, 2007 Well, even though this is a php help forum, you can post your java code here and we can take a look.. don't expect too much though Quote Link to comment https://forums.phpfreaks.com/topic/62619-accepting-httpurlconnection-from-java-in-php/#findComment-312438 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.