Re: HTTPSocket POST file upload problem
I have tried using Wireshark to figure out the problem and it appears that the communication is fine for a while and then my server sends an SSL alert 21 which means that a packet could not be decrypted. After this my server starts sending reset requests which are ignored by the remote server.
On Saturday, 18 August 2012 08:39:24 UTC+1, Stuart Bridger wrote:
I am having problems uploading files from a remote server. Some of the files download fine but others are incomplete. Strangely, the incomplete files are always exactly the same length but I get unexpected end of file when uncompressing them using gzip.--$httpSocket = new HttpSocket();
$zipFile = fopen(TMP . 'tmp_file.gz', 'w');
$httpSocket->setContentResource($zipFile);
$fileResponse = $httpSocket->get('URL_to_file', array(), array('redirect' => true));
fclose($zipFile);
The URL redirects to an Amazon S3 bucket.
Is there any way of checking if this is a problem at my end? Looked in Apache and PHP error logs but can see nothing relevant.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home