# Disable Authentication Popup [duplicate]

I'm doing my own server authentication that sends the authentication as a header. If the authentication is wrong, I want to print an error message, but instead Mathematica creates that authentication popup. I want to remove the popup and have the output from the wrong authentication generate an error message.

• Try Interactive->False in your URLRead – b3m2a1 Jun 16 '17 at 3:22
• I think those are duplicates but let me know if you disagree. Also, keep in mind this bug: Authentication dialog for URLDownload / URLSave – Kuba Jun 16 '17 at 5:23
• I'm using URLExecute which takes the same options as URLRead, but I am also making POST and DELETE requests. For these can I do: URLExecute[HTTPRequest[url,<|"Method"->"POST"|>, Interactive->False]]? Also, is there a reason to use URLRead over URLExecute? – Joe Blow Jun 16 '17 at 5:56
• @JoeBlow should work, doesn't it? The difference is that URLRead gives you more control and Execute shorter syntax, depends what fits your needs. – Kuba Jun 16 '17 at 7:33