Executing wget command 404 Not Found error is being thorwn - wget

when i execute wget command below exception is being thrown. ANy suggestions?
command:
wget --user 'myusername' --password 'mypassword' -r -A '*.jpg' 'http://123.12.12.123:8090/file/settings'
exception:
--2021-04-18 20:17:46-- http://123.12.12.123:8090/file/settings
Connecting to 123.12.12.123:8090... connected.
Proxy request sent, awaiting response... 404 Not Found
2021-04-18 20:17:46 ERROR 404: Not Found.

Related

Correcting a simple malformed CURL request

I have a fairly straightforward curl GET request to a server that has a functioning endpoint but which is giving me a 400 error. I'm honestly not sure what's causing the error.
Here's the request:
curl -v -g -X GET "https://pokemon.server.com/api/set_data?scan_next=true&instance=City%20Downtown&coords='[{"lat":120,"lon":45}]'" -H 'Content-Type:application/x-www-form-urlencoded' -H 'Accept:application/json' -u 'user:password'
The API spec is here: https://github.com/RealDeviceMap/RealDeviceMap/wiki/7.-API-Calls
And I know it's not an authentication issue because this request works
curl -v -X GET 'https://pokemon.server.com/api/set_data?reload_instances=true' -H 'Accept:application/json' -u 'user:password'

SNMPD to configure as Proxy agent

Am configuring SNMPD to acts as proxy agent between SNMP manager(snmpb browser) and Network devices in centOS by referring https://net-snmp.sourceforge.io/wiki/index.php/Snmpd_proxy. After adding the <proxy -Cn testname -v 3 -u testUser -a MD5 -A "PasswordA" -x DES -X "PasswordX" -l authPriv ipaddress .1.3> in snmpd.config file, getting the below mentioned error on that line.
Error: failed to parse proxy args.
Kindly help me to resolve this.

curl: (6) Could not resolve host: application error after this command ON WINDOWS

im trying to issue this following command using cURL on a windows 7 box but i get a "could not resolve host: application" error
any ideas?
curl -c cookies.txt -H “Content-Type: application/json” -X POST -d \
‘{“username”:”alejandro”,”password”:”123ABC”}’ \
http://192.168.1.25/cv_api/sessions
thanks!

wget not working with 404 not found

The same exact url has no problems downloading from chrome, but when I try with wget I get the error:
xxx#yyy:~/dataset/imagenet_synsets$ wget http://image-net.org/download/synset?wnid=xxx&username=xxx&accesskey=xxx&release=latest&src=stanford
[1] 5842
[2] 5843
[3] 5844
[4] 5845
[2] Done username=xxx
xxx#xxx:~/dataset/imagenet_synsets$ --2017-05-12 11:11:31-- http://image-net.org/download/synset?wnid=xxx
Resolving image-net.org (image-net.org)... 171.64.68.16
Connecting to image-net.org (image-net.org)|171.64.68.16|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-05-12 11:11:32 ERROR 404: Not Found.
This is because wget does not follow redirects. I might suggest using curl instead.
Use the -L flag to make curl follow redirects, and -O or -o <filename> to redirect output to a file:
curl -L -O http://image-net.org/download/synset\?wnid\=xxx\&username\=xxx\&accesskey\=xxx\&release\=latest\&src\=stanford
or (saving to myfile.html):
curl -L -o myfile.html http://image-net.org/download/synset\?wnid\=xxx\&username\=xxx\&accesskey\=xxx\&release\=latest\&src\=stanford

php command not found while installing composer

I am using ubuntu OS. I am trying to install composer.
my $PATH is
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/opt/lampp/bin/php
while entering following command it shows error php is not command
curl -sS https://getcomposer.org/installer | sudo php --
--install-dir=/usr/local/bin --filename=composer
error sudo:
php: command not found
curl: (23) Failed writing body (0 != 16133)
Do you use PHP7? Then the command should be this.
curl -sS https://getcomposer.org/installer | php70