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: varun krishnan <varunkrish_at_gmail.com>
Date: Fri, 7 Dec 2007 10:03:47 +0530

check 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.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 free auto ads on Yello Classifieds now! Try it now!<http://ss1.richmedia.in/recurl.asp?pid=255>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

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