1

I am trying to get a file generated by the php script export.php. But using this command, I am either getting 403 Request Forbidden or downloading the script itself instead of a .csv the script is supposed to generate. If I visit the link manually on Chrome, the download starts automatically and the csv file is downloaded

wget -U Chrome http://proto.agrech.com/export.php 
4
  • You're creating some redirection, which wget isn't going to follow. How is the data generated to be downloaded?
    – user508889
    Apr 15, 2016 at 22:40
  • It looks like JS? curl nor wget will work with javascript.
    – user508889
    Apr 15, 2016 at 22:49
  • Maybe use something like Selenium or PhatomJS?
    – user423626
    Apr 16, 2016 at 7:32
  • Solved by getting the CURL command to go from the browser to download the .csv.
    – firepro20
    Apr 17, 2016 at 14:29

1 Answer 1

-2

Solved by getting the CURL command to go from the browser to download the .csv

1
  • 1
    and the curl command is...?
    – Paolo
    Jan 26, 2018 at 0:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .