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

curl-and-php

RE: 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: Sat, 8 Dec 2007 02:46:34 +0000

I have increased the memory size from 8 MB to 520MB in php.ini
 
 

Date: Fri, 7 Dec 2007 10:03:47 +0530From: varunkrish_at_gmail.comTo: curl-and-php_at_cool.haxx.seSubject: Re: PHP libcURL : Windows can upload file up to 2 MB but Unix is uploading only 100kbcheck you php memmory limits..please use phpinfo() to check the same.regards,Varun
On Dec 7, 2007 2:56 AM, desai shweta < setuset_desai_at_hotmail.com> wrote:

I have strange environment problem with PHP/libCurl. Windows Version:PHP : 5.2.0libCurl :7.16.0curl: 7.16.0 Unix Version:PHP : 5.1.4libCurl: 7.15curl: 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 free auto ads on Yello Classifieds now! Try it now!_______________________________________________http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
_________________________________________________________________
Tried the new MSN Messenger? It’s cool! Download now.
http://messenger.msn.com/Download/Default.aspx?mkt=en-in

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