smithfarm / dochazka-cli

Dochazka CLI client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

hostname shouldn't be forcefully absolute #35

Open tampakrap opened 7 years ago

tampakrap commented 7 years ago
# dochazka-cli $fqdn
Loading configuration files from /usr/lib/perl5/vendor_perl/5.24.0/auto/share/dist/App-Dochazka-CLI
Cookie jar: /home/tampakrap/.cookies.txt
Username: $username
Authenticating to server at $fqdn as user $username
Password: 
MREST_OTHER_ERROR_REPORT_THIS_AS_A_BUG (ERR) MREST_OTHER_ERROR_REPORT_THIS_AS_A_BUG
Response: '400 URL must be absolute'

it should work with both giving by eg https://$fqdn OR $fqdn with an --ssl flag. Or alternatively support only one of them, make sure it is properly documented and make the error more descriptive and user friendly (the lines with the capitals are not really needed)