cURL / Mailing Lists / curl-users / Single Mail

curl-users

Help iterating through post data

From: <mconnor_at_reisonline.com>
Date: Thu, 13 May 2004 09:18:24 -0400

I need to rotate through the alphabet on the post data. I want to send
456976 (26*26*26*26) web requests to the URL
http://somehost.somedomain.net/somedir/somescript.asp?action=results with
the following post data:

Owner+Name=aaaa&cmdSubmit=Submit
Owner+Name=aaab&cmdSubmit=Submit
Owner+Name=aaac&cmdSubmit=Submit
...
Owner+Name=zzzx&cmdSubmit=Submit
Owner+Name=zzzy&cmdSubmit=Submit
Owner+Name=zzzz&cmdSubmit=Submit

But when I specify the post data to curl as
"Owner+Name=[a-z][a-z][a-z][a-z]&cmdSubmit=Submit", I sends the following
literal web request:

Owner+Name=[a-z][a-z][a-z][a-z]&cmdSubmit=Submit

where as it should be sending:

Owner+Name=aaaa&cmdSubmit=Submit

Thanks for any help!

Matthew
Received on 2004-05-13