Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsZymic Free Web HostingZymic Free Web Hosting - General Discussion & Help right
  Reply to this topic Start new topic
left right
jjw123
post Jun 23 2012, 08:40 PM
Post #1


Newbie
*

Group: Members
Posts: 3
Joined: 23-June 12
Member No.: 246,921



so basically i have uploaded a txt file to the ftp server and i can access it ok, but i am trying to access it through java code and it seems to be accessing the html code for the "The address you have entered is not open to the public." error message.

any ideas what could be happening?
Go to the top of the page 
 
  + Quote Post
ssfdre38
post Jun 23 2012, 10:39 PM
Post #2


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,758
Joined: 23-January 10
From: on your screen
Member No.: 127,507



change the txt file to index.html
Go to the top of the page 
 
  + Quote Post
jjw123
post Jun 23 2012, 11:40 PM
Post #3


Newbie
*

Group: Members
Posts: 3
Joined: 23-June 12
Member No.: 246,921



still the same issue, maybe the website is not properly activated?
Go to the top of the page 
 
  + Quote Post
ssfdre38
post Jun 23 2012, 11:47 PM
Post #4


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,758
Joined: 23-January 10
From: on your screen
Member No.: 127,507



show me with a screenshot
Go to the top of the page 
 
  + Quote Post
jjw123
post Jun 24 2012, 01:06 AM
Post #5


Newbie
*

Group: Members
Posts: 3
Joined: 23-June 12
Member No.: 246,921



im not sure how, basically i have a txt file loaded onto the server, im then trying to access it through java code to check if whats written in there is the same as a variable in my code.

but whenever i load it up it just seems to be recieving this code instead of whats in the txt file


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>403 Forbidden!</title> <link rel="stylesheet" type="text/css" href="/404/style.css" /></head><body><div id="container"><div id="logo"><a href="http://www.zymic.com/"><img src="/403/images/logo.png" alt=""/></a></div><div id="main"><h2><img src="/403/images/error.png" alt="" /> 403 Forbidden!</h2><p>The address you have entered is not open to the public. Here are some sponsored websites you may be interested in:</p><div id="hostingads"><script LANGUAGE="JavaScript" SRC="http://www.hostingcatalog.com/banner.php?id=8A94E920AB94F0A0DC79FD16347AD06D848187B216F2988725646B1ED6B3F2CC23CC7CBFE1D17
EA1"></SCRIPT></div></div><p align="center"><a href="http://www.zymic.com/free-web-hosting/"><img src="/404/images/learn-more404.png" alt="Get your free website" width="451" height="61" /></a></p </div></body></html>

but yet when i navigate to the webpage on my browser, it shows the webpage
Go to the top of the page 
 
  + Quote Post
ssfdre38
post Jun 24 2012, 01:21 AM
Post #6


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,758
Joined: 23-January 10
From: on your screen
Member No.: 127,507



i want a screenshot of the FTP Client with it logged int your hosting account
Go to the top of the page 
 
  + Quote Post
Vhati
post Sep 24 2012, 09:06 AM
Post #7


Newbie
*

Group: Members
Posts: 3
Joined: 24-September 12
Member No.: 258,244



You can see the file in a webbrowser, but when you have java retrieve the same url you get redirected?

Run Wireshark. Sniff both scenarios, and compare the requests by right-clicking a server response packet and choosing "Follow TCP Stream".
I think Zymic is reacting to Java's default user agent.

This fixed the problem for me:
CODE
httpConnection.setRequestProperty("User-Agent", "INSERT YOUR BROWSER'S AGENT STRING HERE");
Go to the top of the page 
 
  + Quote Post
 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 20th June 2013 - 01:04 AM