Vinelab / http

A smart, simple and fault-tolerant HTTP client for sending and receiving JSON and XML
58 stars 30 forks source link

Missing features #6

Closed dominikzogg closed 10 years ago

dominikzogg commented 10 years ago

Hello @Mulkave

I dlike to create a http client adapter to my https://github.com/saxulum/saxulum-http-client-interface, cause its seems your client is very popular within the lavarel community.

There are allready 3:

There are two features i miss:

Would you like to add them?

Regards @dominikzogg

Mulkave commented 10 years ago

Hi @dominikzogg

Glad to hear! Regarding the features:

$response = HttpClient::get('http://example.org');

// raw content
$response->content();

Cheers :beers:

dominikzogg commented 10 years ago

Hi @Mulkave

Sorry, i mean't on the request object/array

Regards dominik

Mulkave commented 10 years ago

@dominikzogg Just to make things clear. Does the following suite the needs of the plain content support feature ?

$response = HttpClient::get(['url' => 'abc.url', 'content' => 'whatever content here']);

and the content will be sent as-is ?

dominikzogg commented 10 years ago

Hello @Mulkave

Yeah that would be fine. And for the protocol version curl needs the following option: CURLOPT_HTTP_VERSION

Regards dominikzogg

Mulkave commented 10 years ago

Got it. Thanks :+1: