Before I spend a lot of time going down the wrong path, I want to get some input here...
I'm working on something that will automatically post articles based on certain criteria to a WP install. The source for the form that submits a new post has some info that is dynamically generated in hidden fields, so my question is, should I:
1. Use cURL to get the page, grab the dynamic data that it generated for the hidden fields and then submit the post with all the applicable info
2. Since I know what fields it needs, randomly generate my own data for the hidden fields and submit the post with all applicable info
3. Something else that I haven't thought of?
Right now I'm just trying to get it funtioning, but it will be a WP plugin when it's finished.
I'm working on something that will automatically post articles based on certain criteria to a WP install. The source for the form that submits a new post has some info that is dynamically generated in hidden fields, so my question is, should I:
1. Use cURL to get the page, grab the dynamic data that it generated for the hidden fields and then submit the post with all the applicable info
2. Since I know what fields it needs, randomly generate my own data for the hidden fields and submit the post with all applicable info
3. Something else that I haven't thought of?
Right now I'm just trying to get it funtioning, but it will be a WP plugin when it's finished.