Why do web-based workflows fail when MATLAB Web Preferences specify a web proxy that uses Basic authentication ?
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 1월 30일
답변: MathWorks Support Team
2018년 2월 28일
When I configure MATLAB Web Preferences to use a proxy with Basic authentication, then workflows that connect to web servers via HTTPS will fail.
If I use workflows that connect to web servers, such as using urlread and urlwrite, I see an error like the following:
Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
The *Request Support* button in the MATLAB desktop displays a dialog box that reports "Unable to Contact MathWorks".
채택된 답변
MathWorks Support Team
2018년 1월 30일
This issue is caused by a change in behaviour in Oracle's JRE 8 - described here: <http://www.oracle.com/technetwork/java/javase/8u111-relnotes-3124969.html>
See the section: *Disable Basic authentication for HTTPS tunneling.*
The following workaround restores the less secure proxy authentication behavior present in earlier versions of Java. Before applying this workaround, please consult the person(s) responsible for your web proxy to determine if the following workaround is appropriate.
After you have confirmed that you want to use a proxy that uses Basic authentication, then follow these steps:
1. Close MATLAB.
2. Create or edit a java.opts file as described in the documentation here:<https://uk.mathworks.com/help/matlab/matlab_env/java-opts-file.html https://www.mathworks.com/help/matlab/matlab_env/java-opts-file.html>
3. Add this code on a separate line:
-Djdk.http.auth.tunneling.disabledSchemes=
4. Restart MATLAB.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Web App Server에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!