0

I am trying to download a file from its URL using Windows Powershell as follows

invoke-webrequest -uri "http://www.ead.eurocontrol.int/pamslight/pdf/4e415453/EG/C/EN/AIP/AD/EG_AD_2_EGFF_en" -outfile "c:\temp\EGFF.pdf"

But get the error

Forbidden: You don't have permission to access /pamslight/pdf/4e415453/EG/C/EN/AIP/AD/EG_AD_2_EGFF_en on this server

Is this a restriction from the web site? and is there a way to download the file using its URL?

closed as off-topic by Patrick Mevzek, dan Jun 7 at 0:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about running a website. For guidance on which questions are on-topic on Pro Webmasters, please see the help center." – Patrick Mevzek, dan
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Questions here are required to be about a website under your own control since there's really no way for us to ultimately know if the answers are correct. As Quentin stated, it could be any number of things, possibly because you're not using a browser so there isn't any user agent information being supplied as would normally be the case. – dan Jun 7 at 0:47
1

Is this a restriction from the web site?

Yes.

and is there a way to download the file using its URL?

Maybe, but we have no idea what that way is. Maybe you need to log in and get a cookie. Maybe you need to send a JWT in a header field. Maybe the website's filesystem has just marked that file as non-readable and nobody can download it.

Not the answer you're looking for? Browse other questions tagged or ask your own question.