yodarunamok / fxphp

FX.php -- The best way from FileMaker to the Web
http://fx.iviking.org/
44 stars 29 forks source link

Update RetrieveFM7Data.class.php to fix compatibility with authentication #33

Closed matsuo closed 9 years ago

matsuo commented 9 years ago

Please revert RetrieveFM7Data.class.php partly because CURLAUTH_ANY doesn't work for me in some cases when using FileMaker Server 13.

yodarunamok commented 9 years ago

What happens when things don't work? Is there an error, or does it just silently fail?

matsuo commented 9 years ago

When requiring Basic Authntication of a web page and FX.php accesses to a database after the authentication and authorization, it returns 'HTTP/1.1 401 Unauthorized' and can't get the XML response. (Confirmed environment: OS X Mavericks v10.9.5, FileMaker Server 13.0v4, PHP 5.4.35, curl 7.37.0)

Works for me when using CURLAUTH_BASIC instead of CURLAUTH_ANY.

matsuo commented 9 years ago

Thank you for your merging!

Related discussions: http://mail.iviking.org/pipermail/fx.php_list/2015-January/012962.html http://mail.iviking.org/pipermail/fx.php_list/2015-January/012963.html