PHP Velho Oeste 2024

HttpRequest::setContentType

(PECL pecl_http >= 0.10.0)

HttpRequest::setContentTypeİstek içerik türünü belirler

Açıklama

public bool HttpRequest::setContentType ( string $içerik_türü )

Post isteğinin içerik türünü belirler.

Değiştirgeler

içerik_türü

İsteğinin (birincil/ikincil) içerik türü.

Dönen Değerler

Başarı durumunda TRUE döner. Aksi takdirde, içerik türü birincil veya ikincil parçaları içeriyor gibi görünmüyorsa FALSE döner.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top