4 posts
Posted 15 August 2012 - 06:03 PM
Seems like the http.get() is ignoring some parts of the url
for example
http://stuff.url.com/cats/cats.htmlit will leave out the "stuff" part and return contents of
http://url.com/cats/cats.html
474 posts
Posted 15 August 2012 - 06:13 PM
Hmm. Don't know if this is a bug or if ComputerCraft just doesn't support subdomains.
463 posts
Location
Germany
Posted 15 August 2012 - 07:04 PM
and in my PC it ignores the php piece too!
2447 posts
Posted 15 August 2012 - 10:41 PM
There's nothing in our code that does that. Are you sure the page isn't redirected to another one?
Do you have examples of URLs this happens with?
4 posts
Posted 16 August 2012 - 06:05 PM
Ok i done some more testing, it appears that it doesnt ignore subdomains, but the problem is in file format bit such as .html or .php etc
causing it to go to a "page not found" page or redirect code
2447 posts
Posted 16 August 2012 - 06:27 PM
Well we don't do anything with file extensions - please provide me with examples so we can see what the issue is.
Edit: Real examples please!
4 posts
Posted 16 August 2012 - 07:07 PM
Ok what im trying to do is read the source from
http://tastethetest....tleCommand.htmlusing a computer, but the computer gets the page not found page source code as it would if you removed the .html part in your browser
In the computer i am using
Tabl = {}
function gets()
Tabl = http.get("http://tastethetest.zxq.net/Files/TurtleCommand.html")
print(Tabl.readAll())
end
while true do
sleep(1)
gets()
end
prints page not found code.
also same result with
http://tastethetest.zxq.net
4 posts
Posted 06 September 2012 - 07:11 PM
any idea why it is doing that?