SmileyBot 13 Posted August 5, 2021 Report Share Posted August 5, 2021 Hey Guys I'm trying to use Aymens - 'http file download' to download a PDF My issue is that the URL needs a user and password to access the file Any ideas on how this can be done? Thanks Quote Link to post Share on other sites
PRO 69 Posted August 5, 2021 Report Share Posted August 5, 2021 Hello @SmileyBot, Try to pass the credentials in the URL like so: https://username:password@www.example.com/your-file.pdf Feel free to let us know if this worked for you. Quote Link to post Share on other sites
SmileyBot 13 Posted August 6, 2021 Author Report Share Posted August 6, 2021 Thanks for the reply Yes, I have tried this and it doesn't work Quote Link to post Share on other sites
PRO 69 Posted August 6, 2021 Report Share Posted August 6, 2021 Hello @SmileyBot, Last time I tried to use Aymens HTTP plugin I had similar issues. Did you try Heopas Plugin? It is free and has similar HTTP functions as the one from Aymen. For me Heopas Plugin solved a similar issue with the authentication. I believe it will work with this one. Quote Link to post Share on other sites
SmileyBot 13 Posted August 6, 2021 Author Report Share Posted August 6, 2021 Thanks I tried heopas 'http download' Do you know how to pass the credentials I don't want to have to manually navigate to the page to download, Here is the url for the download, https:// Quote Link to post Share on other sites
Varo 28 Posted August 6, 2021 Report Share Posted August 6, 2021 Its not direct link download, you must through login process to get cookie, and then download the file. send POST request to : and then you can download the file Quote Link to post Share on other sites
PRO 69 Posted August 6, 2021 Report Share Posted August 6, 2021 Yes, Varo is right. Before seeing the example I was assuming OP is asking for a solution how to handle "basic authentication" of a website or web server with HTTP requests. Quote Link to post Share on other sites
SmileyBot 13 Posted August 7, 2021 Author Report Share Posted August 7, 2021 Thanks guys Cheers Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.