Cyotek Forums

Products => WebCopy => Topic started by: nandhan on June 11, 2015, 10:52:52 AM

Title: Force wcopy to use GET instead of HEAD
Post by: nandhan on June 11, 2015, 10:52:52 AM
Hi,

For some of the pages in my website, HEAD request is returning 404 while GET returns 200.

Using the UI I am able to make WebCopy to use GET instead of HEAD in the Project Properties. Is there anyway to do the same in Command line?

I need to run wcopy as a batch job and need the use of cmd line wcopy.

Please let me know if this is possible. Thanks!
Title: Re: Force wcopy to use GET instead of HEAD
Post by: Richard Moss on June 11, 2015, 04:58:37 PM
Hello,

I'm afraid this isn't possible in the current build - the general idea is the command line version will support as much functionality as the GUI client, but iteratively over successive updates. (It was also released with less options than I wanted due to having to get the release out due to some bugs).

Depending on what you are doing though, it may be possible to work around, as the CLI supports WebCopy projects created with the GUI. So if you are able to create a project and pass that to the CLI as part of your batch process then this may help.

Returning a 404 for a HEAD request is a bit odd, it should return a 405 if it really isn't supported.

I'll drop a line to this thread as soon as an update is available which adds this option to the CLI, but let me know if the project workaround works for you.

Regards;
Richard Moss
Title: Re: Force wcopy to use GET instead of HEAD
Post by: Richard Moss on August 25, 2015, 06:38:54 PM
Hello,

I've just released a new update which adds the ability to disable use of the HEAD verb via the no-prehead switch. Aside from an option to set the user agent, I've added no other functionality to command version yet, but let me know if this new option works for you.

Regards;
Richard Moss