Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP2 (5.1.5), 5.2 EE (5.2.4)
-
All
Description
The current URLtoByteArray() and URLtoString() methods HttpUtil limits the header information that can be used when fetching a URL. To make it easier to set additional header information, two new methods have been added to HttpUtil:
public byte[] URLtoByteArray(Http.Options options)
public String URLtoString(Http.Options options)
The following methods have been deprecated in favor in using the methods above:
public byte[] URLtoByteArray(String location, Cookie[] cookies, Http.Auth auth, Http.Body body, boolean post)
public byte[] URLtoByteArray(String location, Cookie[] cookies, Http.Auth auth, Map<String, String> parts, boolean post)
public String URLtoString(String location, Cookie[] cookies, Http.Auth auth, Http.Body body, boolean post)
public String URLtoString(String location, Cookie[] cookies, Http.Auth auth, Map<String, String> parts, boolean post)
Attachments
Issue Links
- is related to
-
LPS-3698 HttpUtil should allow dynamic headers via Http.Options
- Closed