cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

PHP libcURL : Windows can upload file up to 2 MB but Unix is uploading only 100kb

From: desai shweta <setuset_desai_at_hotmail.com>
Date: Thu, 6 Dec 2007 21:26:20 +0000

I have strange environment problem with PHP/libCurl.
 
Windows Version:
PHP : 5.2.0
libCurl :7.16.0
curl: 7.16.0
 
Unix Version:
PHP : 5.1.4
libCurl: 7.15
curl: 7.15
 
When I try to upload 2MB file from windows m/c to remote server I am able to get confirmation.
But same file I am not able to Upload from Unix.However, 120kb file size I am able to upload from Unix.
 
The post is multipart and it is https transfer. My upload script is below.
 
$postData = array();$postData[ '__VIEWSTATE' ] = $viewStateVari; $postData[ 'flUpl' ] = $uploadFile;$postData[ 'btnSubmit' ] = 'Submit';
$ch = curl_init();curl_setopt($ch, CURLOPT_URL,$STEPSEVENURL);curl_setopt($ch, CURLOPT_VERBOSE, 1);curl_setopt($ch, CURLOPT_USERAGENT, $agent);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS,$postData);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);curl_setopt($ch, CURLOPT_REFERER, $reffer);curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
 
Thanks & Regards,
SMD
_________________________________________________________________
Post ads for free - to sell, rent or even buy.www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=186

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-12-06