2
I have problem with calling wget command in CentOS 6.5. Im using following command:
(I spaced the https, because of my user level on thi forum)
wget --certificate=/root/o2key.pem https://smsconnector.cz.o2.com/smsconnector/getpost/GP?action=send&baID=1992946&toNumber=%2b420733181177&text=Test&msgID=1&deliveryReport=TRUE&intruder=FALSE&multipart=FALSE&validityPeriod=10000&priority=1
System returns this error:
https://smsconnector.cz.o2.com/smsconnector/getpost/GP?action=send Resolving smsconnector.cz.o2.com... 160.218.160.234 Connecting to smsconnector.cz.o2.com|160.218.160.234|:443... connected. HTTP request sent, awaiting response... 400 Bad Request 2014-02-24 11:17:24 ERROR 400: Bad Request.
[1] Exit 8 wget --certificate=o2key.pem https://smsconnector.cz.o2.com/smsconnector/getpost/GP?action=send
[2] Done baID=1992946
[3] Done toNumber=420733181177
[4] Done text=Test
[5] Done msgID=1
[6] Done deliveryReport=TRUE
[7] Done intruder=FALSE
[8]- Done multipart=FALSE
[9]+ Done validityPeriod=10000
When I try the same url in windows, it works without any problem.
Thx for any advice
I tried to put the whole url in quotes ('https://smsconnector.cz.o2.com/smsconnector/getpost/GP?action=send&baID=1992946&toNumber=+420733181177&text=Test&msgID=1&deliveryReport=TRUE&intruder=FALSE&multipart=FALSE&validityPeriod=10000&priority=1') but without any progress. Do you have any other tips?
– user3327926 – 2014-02-24T15:30:43.030Double quotes, naturally. It's
wget "http://bla/bla?bla=bla&id=1"
. – Daniel B – 2014-02-24T15:48:07.557wget --certificate=/root/o2key.pem "https://smsconnector.cz.o2.com/smsconnector/getpost/GP?action=send&baID=1992946&toNumber=+420733181177&text=Test&msgID=1&deliveryReport=TRUE&intruder=FALSE&multipart=FALSE&validityPeriod=10000&priority=1" and im still getting error 400. In windows 7 the url works normally...
– user3327926 – 2014-02-24T15:59:26.963