Is it possible to check remotely (no local/FTP access) a URL to see if the webpage (file) was uploaded/created as binary or ascii?
Thanks,
Roy.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure of the value (or indeed, intent) of the question but it’s quite possible to send an HTTP GET request to the web page and examine what comes back. If all the bytes are within the range 0x20 through 0x7e, you can safely assume it’s ASCII. Anything outside that range is not ASCII.
Perhaps if your question indicated more on why you were trying to do this, we could help you out further.
If you want to figure out whether the page was FTP’ed to the server in ASCII or binary mode, it won’t make any difference (and you won’t be able to tell) if the server and the machine that uploaded it are both ASCII.
If you uploaded, for example, an EBCDIC file in binary mode to an ASCII server, that will be immediately obvious :-).