I installed cURL in Windows using the following website: https://curl.haxx.se. I executed the following command on Command Line in Windows 64 bit:
curl www.google.com
The result returned on executing the above command is:
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.co.in/?gfe_rd=cr&ei=5cadWYGnDY-
DoAOehquQDg">here</A>.
</BODY></HTML>
I expected a result in XML/JSON format instead of HTML. I am not sure why I am getting this. I have tried using a cURL command with a server as well, and specified XML there for the result format. In that case also, HTML code is being returned. Is there any way to resolve this issue?
Any help is appreciated. Thanks in advance.