Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Read .txt file from my website without enabling JavaScript (C#)

I am trying to read a text file from my website using a WebClient or HttpWebRequest in C#, however they always return that I need to enable JavaScript, when this is just a text file (however, it contains basic HTML)

Is there any way to make my website not need JavaScript for .txt files, or a different method to fix this?

This is what I get (aside from a clunk of html)
This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

Thank you.

Comments

  • No, you can only host websites on InfinityFree, not API backends. Only clients which support javascript and cookies can access any content hosted on InfinityFree.

Sign In or Register to comment.