views:

47

answers:

1

I need to populate my database with test data. But my data needs to be manipulated to be put into the form by my PHP FORM before upload.

How can I automatic the process of filling out my web application form field, which also need to accept uploading images?

+1  A: 

Progamatically, you can do this by making a post request in your language of choice.

Tool wise, you can use Fiddler2 which has support for making HTTP Post requests.

You'll have to fill out the HTTP Request body properly; usually form post variables look like this:

name1=value1&name2=value2

Or use curl.

This SuperUser question shows how to make an HTTP post using curl.

Alan