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... 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. 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"... 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 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
Archived
This topic is now archived and is closed to further replies.