Force wcopy to use GET instead of HEAD

Started by nandhan, June 11, 2015, 10:52:52 AM

Previous topic - Next topic

nandhan

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!

Richard Moss

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
Read "Before You Post" before posting (https://forums.cyotek.com/cyotek-webcopy/before-you-post/). Do not send me private messages. Do not expect instant replies.

All responses are hand crafted. No AI involved. Possibly no I either.

Richard Moss

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
Read "Before You Post" before posting (https://forums.cyotek.com/cyotek-webcopy/before-you-post/). Do not send me private messages. Do not expect instant replies.

All responses are hand crafted. No AI involved. Possibly no I either.