Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1321 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

cURL Error

Thread title: cURL Error
Reply    
    Thread tools Search this thread Display Modes  
11-26-2009, 06:08 AM
#1
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Expertise:
Software:
 
Posts: 419
iTrader: 0 / 0%
 

Sketch is on a distinguished road

  Old  cURL Error

Hey guys,

I'm trying to submit an XML document via curl.

It's not too big, a few 100kb. (505kb to be exact) and it always fails.

I know it's got to do with the size, because when I reduce the filesize it works.

My question is how do I increase the post size in my curl script?

Code:
function pushMMS($content) {
        $ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, 'MYURL');       
	curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $content);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        $output = curl_exec ($ch);

	if($output === false)
		die(curl_error($ch));
		
	curl_close ($ch);
						
        return $output;    
}
The error the die statement returns me is;

Originally Posted by Curl Error
Send failure: Connection was aborted
Does anyone know how to stop this error? I can't work out an answer...

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed