Логин:

Пароль:

Форумы
Общие вопросы
Document Object Model
Обсуждаем конференцию
Web Usability (test)

Общие вопросы

Send()'s body

> Ну и? Как его сформировать?

Поищи в MSDN. То, что мне первым попалось(sorry, на VBScript):

Dim strXML As String
Dim strURL As String
Dim objHTTPRequest As New MSXML.XMLHTTPRequest
Dim objXMLDocument As New MSXML.DOMDocument

strXML = "<TESTDOC>A Test XML Document</TESTDOC>"
objXMLDocument.loadXML strXML
objHTTPRequest.open "POST", "http://test.microsoft.com/xmltest.asp", False

objHTTPRequest.setRequestHeader "Cookie", "cookietest=testvalue"
' Must repeat call to get cookie set
objHTTPRequest.setRequestHeader "Cookie", "cookietest=testvalue"

objHTTPRequest.send objXMLDocument

MsgBox objHTTPRequest.responseText

Set objXMLDocument = Nothing
Set objHTTPRequest = Nothing
СообщениеАвторДата
Gilmour09.07.2002 17:44
Leechy09.07.2002 18:25
Gilmour10.07.2002 02:09
Leechy10.07.2002 19:43
MetaWizard10.07.2002 10:28
Gilmour10.07.2002 11:11
Leechy10.07.2002 19:47
Gilmour11.07.2002 04:28
Maniac11.07.2002 09:29
Gilmour16.07.2002 11:11
Maniac10.07.2002 19:33
Gilmour11.07.2002 04:05
MetaWizard10.07.2002 19:21
Gilmour09.07.2002 18:15