good suggestion, should someone else need this:
using Requests
function urlExists(url)
try
Requests.head(url)
true
catch
false
end
end
On Thursday, October 6, 2016 at 8:09:01 AM UTC-4, Andreas Lobinger wrote:
>
> I haven't used it, but https://github.com/JuliaWeb/Requests.jl looks
> reasonable
>
> On Thursday, October 6, 2016 at 2:01:54 PM UTC+2, Jeffrey Sarnoff wrote:
>>
>> ok, how (within Julia)?
>>
>> On Thursday, October 6, 2016 at 6:19:00 AM UTC-4, Johan Sigfrids wrote:
>>>
>>> I would probably do a HTTP HEAD request. It would return the headers
>>> allowing you to tell what, if anything, is there without having to download
>>> it.
>>>
>>> On Thursday, October 6, 2016 at 7:54:13 AM UTC+3, Jeffrey Sarnoff wrote:
>>>>
>>>> What is best practice for determining if a URL exists (known,
>>>> retrievable, and not 404)?
>>>>
>>>