Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = "http://tstest.wtflab.cz/";
- $fields = array();
- $fields[] = "submit=Do I suck?";
- for($i=0;$i<30;$i++){
- $fields[] = "question[".$i."]=".(rand(1,300));
- $fields[] = "anwser[".$i."][]=1";
- }
- $c = curl_init();
- curl_setopt($c,CURLOPT_URL, $url);
- curl_setopt($c,CURLOPT_POST, count($fields));
- curl_setopt($c,CURLOPT_POSTFIELDS, implode("&",$fields));
- curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
- $result = curl_exec($c);
- curl_close($c);
- print $result;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement