Trouble shooting: Using curl.exe on commandline give weird error

207 views
Skip to first unread message

gunyhake

unread,
Aug 2, 2009, 5:03:25 PM8/2/09
to curlpp-devel
Hi all,

Not sure if you all can help me here. I make a command to the local
webserver using curl.exe

D:\>curl.exe http://localhost/playmo/version.json?apikey=111&imei=222
{"error":{"code":106,"message":"Invalid IMEI number"}}
'imei' is not recognized a
s an internal or external command,
operable program or batch file.

I am not sure why my variable in query string 'imei' is not recognized
as querystring, instead it is consider as batch file or executable
file here.

Where did I do wrong here?

Thanx for all your help

Nguyen Khanh An

unread,
Aug 2, 2009, 5:21:01 PM8/2/09
to curlpp-devel
Hi all,

I found out the reason. I needed to place the whole url in double quotes

D:\>curl.exe "http://localhost/playmo/version.json?apikey=111&imei=222"

The above command should work :)

Piotr Dobrogost

unread,
Aug 3, 2009, 3:34:47 AM8/3/09
to curlpp...@googlegroups.com
gunyhake wrote:

> Hi all,
>
> Not sure if you all can help me here. I make a command to the local
> webserver using curl.exe

You reached the wrong group.
You should post your question to curl-users group
(http://cool.haxx.se/mailman/listinfo/curl-users).

Good luck!


Regards
Piotr Dobrogost

Reply all
Reply to author
Forward
0 new messages