You are here

function _restclient_multipart_encode_text in RESTClient 7.2

Multipart encode the given text

Parameters

string $name: Name of the text

string $text: Text string

Return value

string Returns the header string.

1 call to _restclient_multipart_encode_text()
_restclient_multipart_encode in ./restclient.module
Build the multipart encoded header data

File

./restclient.module, line 707
Defines a standard REST interface to RESTful services

Code

function _restclient_multipart_encode_text($name, $text) {
  return "Content-Disposition: form-data; name=\"{$name}\"\r\n\r\n{$text}\r\n";
}