siddscool19 Posted September 18, 2008 Share Posted September 18, 2008 <?php $content=$_REQUEST["post"]; echo $content; $url = "http://(forumhostname)/login.php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_POST, 4); curl_setopt($ch, CURLOPT_POSTFIELDS,"username=(username)&password=(pass)&redirect=&login=Log+in"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch,CURLOPT_COOKIEJAR,"cookie.txt"); $result= curl_exec ($ch); curl_close ($ch); $ch2 = curl_init(); curl_setopt($ch2,CURLOPT_URL,"http://(forumhostname)/posting.php"); curl_setopt($ch2,CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch2,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch2,CURLOPT_SSL_VERIFYPEER,0); curl_setopt($ch2,CURLOPT_CONNECTTIMEOUT,"120"); curl_setopt($ch2,CURLOPT_COOKIEFILE,"cookie.txt"); curl_setopt($ch2, CURLOPT_POST,5); curl_setopt($ch2, CURLOPT_POSTFIELDS,"subject=hi&message=".$content."&f=1&mode=newtopic&preview=Preview"); $souvik123 = curl_exec($ch2); $error=curl_error($ch2); curl_close($ch2); echo $error; echo $souvik123; ?> This is my above code. When I send about a limited amount of data in $content it works but if i send a large amount of data in $content it doesn't works.Why? Please can someone help? Quote Link to comment https://forums.phpfreaks.com/topic/124831-able-to-send-limited-data-using-curlopt_postfield/ Share on other sites More sharing options...
sKunKbad Posted September 18, 2008 Share Posted September 18, 2008 I don't know if it would effect this, but you might want to check your php.ini file and look for "max_post_size". Quote Link to comment https://forums.phpfreaks.com/topic/124831-able-to-send-limited-data-using-curlopt_postfield/#findComment-644897 Share on other sites More sharing options...
siddscool19 Posted September 18, 2008 Author Share Posted September 18, 2008 can u please tell me how to change it? and yea is it post_max_size? Quote Link to comment https://forums.phpfreaks.com/topic/124831-able-to-send-limited-data-using-curlopt_postfield/#findComment-644905 Share on other sites More sharing options...
siddscool19 Posted September 18, 2008 Author Share Posted September 18, 2008 PLease someone help me Quote Link to comment https://forums.phpfreaks.com/topic/124831-able-to-send-limited-data-using-curlopt_postfield/#findComment-645232 Share on other sites More sharing options...
siddscool19 Posted September 19, 2008 Author Share Posted September 19, 2008 Please can someone help me its urgent ??? Quote Link to comment https://forums.phpfreaks.com/topic/124831-able-to-send-limited-data-using-curlopt_postfield/#findComment-645301 Share on other sites More sharing options...
corbin Posted September 19, 2008 Share Posted September 19, 2008 Looks to me like you're trying to spam a forum. Anyway, it's most likely a limit on their side, in which case you can do nothing. Quote Link to comment https://forums.phpfreaks.com/topic/124831-able-to-send-limited-data-using-curlopt_postfield/#findComment-645308 Share on other sites More sharing options...
siddscool19 Posted September 19, 2008 Author Share Posted September 19, 2008 Sorry I had no intention of spamming just in a hurry i posted really very sorry Quote Link to comment https://forums.phpfreaks.com/topic/124831-able-to-send-limited-data-using-curlopt_postfield/#findComment-645420 Share on other sites More sharing options...
GingerRobot Posted September 19, 2008 Share Posted September 19, 2008 How large are we talking? Quote Link to comment https://forums.phpfreaks.com/topic/124831-able-to-send-limited-data-using-curlopt_postfield/#findComment-645440 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.