How to download a .wav file potected by a login pa...
# support
m
I have this make.com scenario that is activated after a contact has beed made by my assistant, and I get a url like "https://186.227.150.114:5001/#/download_record/xxxxxxxx.wav" and for me to be able to download it, I have to insert my username and password (see image). How can I work arround this and download the file in my scenario? https://cdn.discordapp.com/attachments/1255619868691140660/1255619869077147750/image.png?ex=667dcaa1&is=667c7921&hm=ebe3beeaac31bf07cd66bb47ca32110f2b98c5f23ea38f9ee544a1765562bc9c&
v
@Marco To download a file from a URL that requires authentication in your make.com scenario, you can use the HTTP module to create a custom request that includes your authentication credentials. Here's a general approach to achieve this: 1. **HTTP Module**: Use the HTTP module to make a GET request to the URL. 2. **Basic Authentication**: If the authentication is Basic Auth, you will need to encode your username and password in base64 and include it in the Authorization header. 3. **Custom Headers**: Add any custom headers required by the server, such as content type or accept headers. 4. **SSL Verification**: If the server uses a self-signed certificate (as suggested by the IP address in the URL), you might need to disable SSL certificate verification in the HTTP module settings. Here's a step-by-step guide: 1. Add the HTTP module to your scenario. 2. Set the method to GET. 3. Enter the URL you need to download the file from. 4. In the headers section, add an Authorization header. The value should be
Basic
followed by your base64-encoded username and password. You can encode your credentials using a base64 encoder. The format is
username:password
encoded in base64. 5. If needed, add additional headers or disable SSL certificate verification. 6. Run the scenario to test the download. Please note that handling credentials in scenarios should be done with caution to ensure they are stored and transmitted securely. If you're unsure about how to proceed or need more specific instructions, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
s
Can you make a loom video and show me what is the exact issue?
m
Hey man, thanks for the reply. Well, its not really an issue. When my browser has logged into the 3CX system already if I search the link, it doesn't open a page, it downloads the file right away. Now, when I do a basic auth get request with the same credentials in postman, I get the html of a page, instead of getting the file. Here is a real link: https://186.227.150.114:5001/#/download_record/1003%2F%5BFABRISSA%5D_1003-02730123636_20240625115024%287544%29.wav.
Let me know if you have any insights @User
s
I don't have much idea about 3CX phone system man.
Probably ask this question on general channel someone could help