Login   Register  
PHP Classes
elePHPant
Icontem

Same Problem

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      My Twitter  >  All threads  >  Same Problem  >  (Un) Subscribe thread alerts  
Subject:Same Problem
Summary:Same Problem 413 Request Entity Too Large error.
Messages:2
Author:David Barnes
Date:2010-06-03 14:33:04
Update:2010-06-03 14:41:41
 

  1. Same Problem   Reply   Report abuse  
Picture of David Barnes
David Barnes
2010-06-03 14:33:04
I'm also seeing the 413 Request Entity Too Large error.

This script has been working for a year or so, just started having this error on May 27...an update on twitter site maybe?

Anyone know how to fix it?

  2. Re: Same Problem   Reply   Report abuse  
Picture of David Barnes
David Barnes
2010-06-03 14:41:41 - In reply to message 1 from David Barnes
I have found the solution.

Find these lines in my_twitter.php:


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

Add these lines after:

$entry = '<content type="text/html; charset=iso-8859-1">';
curl_setopt($ch, CURLOPT_POSTFIELDS , $entry);