pkg_geturlpkg urlpkg uses internal wfetch() relying only on bash's tcp support and cat,stat or wc if present allow a progress to be printed on the stderr wfetch respects VERBOSE and so does pkg_geturlpkg RETURN STATUS:

System Message: ERROR/3 (pkg_geturlpkg.rst, line 5)

Unexpected indentation.
1 failed to open tcp socket or connect to given server 2 asked to redirect, but no Location header 3 could not determine size on server 4 number of redirections on http server exceeded the maximum allowed 5 file fully retreived but asked to continue 6 error writing to the said out file 7 file could not be downloaded completely(not used currently), and continue not supported 8 error response from server failed to download 9 failed to do anonymous login to ftp server 10 failed to change directory (ftp) 11 failed to change to binary mode(ftp) 12 failed to pasv or open data connection 99 unknown option ; should not occur