我在抢先身份验证方面遇到很多问题后,终于让它工作了.现在是下一个问题.我想用它来获取文件,但我不知道如何.我认为文件数据可能在变量响应中,但事实并非如此.任何想法如何可行?我正在尝试它,因为几天没有成功:( - 基本上我正在尝试下载一个jpeg文件,它位于由prem.auth保护的服务器上.
// BASIC AUTH
/*
* ====================================================================
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at …
Run Code Online (Sandbox Code Playgroud)