Skip to content

Problems with wordpress #325

@desarrolla2

Description

@desarrolla2

Hi for all.

I have the next code

 // any resource from wordpress.com
$resource  = 'http://lavidaestux.wordpress.com/tag/ubuntu/feed/';
$this->client = new \Guzzle\Http\Client();
$request = $this->client->get($resource);
$response = $request->send();

and i have the next error

Guzzle\Http\Exception\CurlException: [curl] 52: Empty reply from server [url] http://lavidaestux.wordpress.com/tag/ubuntu/feed/ [info] array (
'url' => 'http://lavidaestux.wordpress.com/tag/ubuntu/feed/',
'content_type' => NULL,
'http_code' => 0,
'header_size' => 0,
'request_size' => 89,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.329139,
'namelookup_time' => 0.068307,
'connect_time' => 0.198143,
'pretransfer_time' => 0.198189,
'size_upload' => 0,
'size_download' => 0,
'speed_download' => 0,
'speed_upload' => 0,
'download_content_length' => -1,
'upload_content_length' => 0,
'starttransfer_time' => 0.329127,
'redirect_time' => 0,
'certinfo' =>
array (
),
'primary_ip' => '66.155.11.243',
'primary_port' => 80,
'local_ip' => '192.168.1.13',
'local_port' => 60471,
'redirect_url' => '',
) [debug]

Other servers works fine for me.

curl works fine from comand line

curl -I http://lavidaestux.wordpress.com/tag/ubuntu/feed/
HTTP/1.1 200 OK
Server: nginx
Date: Sun, 19 May 2013 21:39:46 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
Vary: Cookie
X-hacker: If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.
X-Pingback: http://lavidaestux.wordpress.com/xmlrpc.php
Last-Modified: Sat, 11 May 2013 13:56:16 GMT
ETag: "62e37b460cecc3f2f2421776c3de241d"

Any ideas?

Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions