cURL / Mailing Lists / curl-users / Single Mail

curl-users

Command works from CMD but not from .bat

From: Justin Works <jworks_at_gmail.com>
Date: Thu, 1 Nov 2007 09:48:31 -0700

This is my first post to the mailing list, so if, despite reading the
Mailing List Etiquette I still managed to mess up -- sorry. Anyway,
I'm having a small issue with command line utility 7.17.1

I'm getting a very strange result. If I go to start --> run --> CMD
and then at the command prompt enter my curl command as this:

curl "http://hprc.ncqa.org/Result.asp" -e
"http://hprc.ncqa.org/search.asp" -d
"txtAreaCode=&lstStates=CA&txtZipCode=&txtPlanName=&rdoProductLine=All&rdoReportingProduct=HMO%2FPOS&SUBMIT1.x=34&SUBMIT1.y=11"
-o "c:\test2.txt"

I get out 86KB of data with full results.

If I put the exact same command in a .bat file and call it test.bat
and run this from windows explorer I get out a file, but it is now 6KB
and doesn't contain anything but one javascript function code from the
web page.

Any ideas?
Received on 2007-11-01