Здравствуйте! Есть задача: нужно отправить данные на Ucoz сайт через POST с помощью PHP.
Вот HTTP Headers которые отправляются когда я добавляю материал.
Подскажите, как сделать автоматическую передачу этого всего с помощью PHP в виде HTTP Headers данных?
Remote Address:193.109.246.189:80
Request URL:http://dixet.ucoz.com/news
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:application/xml, text/xml, */*; q=0.01
Accept-Encoding:gzip, deflate
Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:3397
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryCkHmz73N9RUyBNnB
Cookie: кукикукикукикуки
Host:dixet.ucoz.com
Origin:http://dixet.ucoz.com
Referer:http://dixet.ucoz.com/news/0-0-0-0-1
User-Agent:Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36
X-Requested-With:XMLHttpRequest
Request Payload
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="jkd498"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="jkd428"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="title"
НАЗВАНИЕ
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="cat"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="fsize"
0
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="ffont"
0
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="fcolor"
0
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="brief"
<p>КРАТКОЕ ОПИСАНИЕ</p>
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="edttbrief"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="html_brief"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="fsize"
0
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="ffont"
0
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="fcolor"
0
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="message"
<p>ПОЛНЫЙ ТЕКСТ</p>
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="edttmessage"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="html_message"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="file1"
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="other1"
ДОП ПОЛЕ 1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="other2"
ДОП ПОЛЕ 2
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="other3"
ДОП ПОЛЕ 3
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="other4"
ДОП ПОЛЕ 4
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="other5"
ДОП ПОЛЕ 5
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="user"
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="ya"
2015
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="ma"
2
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="da"
12
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="ha"
18
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="mia"
34
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="tags"
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="coms_allowed"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="a"
2
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="ssid"
Yyazkdsq
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="_tp_"
xml
------WebKitFormBoundaryCkHmz73N9RUyBNnB
Content-Disposition: form-data; name="_wi"
1
------WebKitFormBoundaryCkHmz73N9RUyBNnB--
Response Headersview source
Cache-Control: private
Cache-Control:no-store
Cache-Control:no-cache
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/xml; charset=UTF-8
Date:Thu, 12 Feb 2015 15:35:20 GMT
Keep-Alive:timeout=15
Pragma:no-cache
Server:uServ/3.2.2
Set-Cookie:кукикуки
Transfer-Encoding:chunked
Vary:host
X-uCoz:1