the other day I needed to get a python file, which was hosted on a url (the actual url is not publicly available, so I'm just making a url up as an example)
So the file was available at a url similar to this:
https://platform.MyUni.dk/pluginfile.php/275570/course/section/131710/app.py I wanted to try to use wget to get the file, so I just went straight ahead and tried it
wget https://platform.MyUni.dk/pluginfile.php/275570/course/section/131710/app.py This did get the file, which correctly is a python file. But if I then look into the file, then it looks like this:
ask@Garsy:~/Notes/AdvancedSec$ cat app.py <!DOCTYPE html> <html dir="ltr" lang="en" xml:lang="en"> <head> <title>learnIT Full of HTML. This really is a bit strange to me. If I paste the link into my browser, then I get the option to download the file, and this works as it should.
How does all this html end up inside this file? and what can I do about it?