HTTP 401 Error when using getContainerDataURL
Operating system version
OS X 10.8.4
Description of the issue
I'm using the getContainerDataURL method to try and retrieve the URL for a given container that is externally stored. The PHP session is authenticated properly, but when I click on a link to get the contents of a container (in this case it's a link to download a PDF) I get a sheet that asks for the login to the server. If I cancel then the 401 error gets thrown. If I use the login credentials that are already defined in my connection to the database itself, it works for the session and proceeds to grab the file.
Steps to reproduce the problem
Here's my line of PHP code that I have in my file:
<?php echo $fm -> getContainerDataURL ( $invoices_record -> getField('File') ); ?>
Note that the "File" field is an externally stored container.
I should be able to view the file that is being linked.
I'm asked to login to the site again. If I cancel then I get an error 401.
Exact text of any error message(s) that appear
HTTP Status 401 -
FileMaker Server has encountered an error:
This request requires HTTP authentication ().
If the Server Launch Page is not available, visit the FileMaker Website for more assistance.