• Resolved stuartb3502

    (@stuartb3502)


    I’m trying to download data using a wget (using the cfdb export link) shell command executed on a local server so that I can schedule it.

    It’s returning 403 currently. The same link works OK if pasted into a browser on my PC.

    I have tried to add to the Wordfence whitelist per the FAQ but no difference.

    I’m a Linux noob so its possible I’m doing something wrong there, but if I’m interpreting the error correctly it seems to be permissions on my hosted server/Wordpress install?

    wget "https://MY_HOSTNAME.COM/wp-admin/admin-ajax.php?action=cfdb-login&cfdb-action=cfdb-export&form=*&enc=xlsx&l=<LOGIN CREDENTIALS REMOVED>"
    --2016-10-03 15:48:09--  https://MY_HOSTNAME.COM/wp-admin/admin-ajax.php?action=cfdb-login&cfdb-action=cfdb-export&form=*&enc=xlsx&l=<LOGIN CREDENTIALS REMOVED>
    Resolving MY_HOSTNAME.COM... <IP ADDRESS REMOVED>
    Connecting to MY_HOSTNAME.COM|<IP ADDRESS REMOVED>|:443... connected.
    HTTP request sent, awaiting response... 403 Forbidden
    2016-10-03 15:48:10 ERROR 403: Forbidden.

    Any suggestions?

    Thanks
    Stuart

    • This topic was modified 8 years, 5 months ago by stuartb3502.
    • This topic was modified 8 years, 5 months ago by stuartb3502.
Viewing 1 replies (of 1 total)
  • Thread Starter stuartb3502

    (@stuartb3502)

    Not sure what the problem with wget was, but I found that using curl instead worked.

    I used curl -o local_filename_for_saving-excel “http link from shortcut/export editor”

    I had to put the http link in double quotes of this to work.

    Stuart

Viewing 1 replies (of 1 total)
  • The topic ‘403 forbidden when trying to wget the export link’ is closed to new replies.