8bb6e8cc14b264b4a32b855045151e98638267c3
galt
  Tue Mar 28 23:12:00 2017 -0700
Step1 Seven Bridges HIPAA-compliant Amazon Storage securely signed URLs meant for GET do not allow them to be used with another method such as HEAD. Therefore we use a GET with byterange=0-0 so that it will still work with Amazon and still return correct info about size and last-modified date of the bigDataUrl file. refs #19158

diff --git src/inc/net.h src/inc/net.h
index 4718f54..ae7a18e 100644
--- src/inc/net.h
+++ src/inc/net.h
@@ -157,33 +157,33 @@
 
 struct hash;
 
 int netUrlHeadExt(char *url, char *method, struct hash *hash);
 /* Go get head and return status.  Return negative number if
  * can't get head. If hash is non-null, fill it with header
  * lines with upper cased keywords for case-insensitive lookup,
  * including hopefully CONTENT-TYPE: . */
 
 int netUrlHead(char *url, struct hash *hash);
 /* Go get head and return status.  Return negative number if
  * can't get head. If hash is non-null, fill it with header
  * lines with upper cased keywords for case-insensitive lookup, 
  * including hopefully CONTENT-TYPE: . */
 
-long long netUrlSizeByRangeResponse(char *url);
-/* Use byteRange as a work-around alternate method to get file size (content-length).  
- * Return negative number if can't get. */
+int netUrlFakeHeadByGet(char *url, struct hash *hash);
+/* Use GET with byteRange as an alternate method to HEAD. 
+ * Return status. */
 
 struct lineFile *netLineFileOpen(char *url);
 /* Return a lineFile attached to url.  This one
  * will skip any headers.   Free this with
  * lineFileClose(). */
 
 struct lineFile *netLineFileMayOpen(char *url);
 /* Same as netLineFileOpen, but warns and returns
  * null rather than aborting on problems. */
 
 struct lineFile *netLineFileSilentOpen(char *url);
 /* Open a lineFile on a URL.  Just return NULL without any user
  * visible warning message if there's a problem. */
 
 struct dyString *netSlurpFile(int sd);