Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: HeaderRequest generates a 9002 or a 12050
Alexandre Archambault

From: Montréal, QC Canada
Posts: 49
Member Since: 02/27/01
posted March 21, 2002 1:38 PM

When creating my own header (using the Dartstring) I get either a 9002 or a 12050 error.

I get the 9002 error when I try to had this header:

POST /test17.oatiets.com HTTP/1.0
Content-Type: text/xml; charset="utf-8"
Content-Length: 6423
SOAPAction: "E-Tag17:RequestNewTag"

using the .ADD for each header line.

  while not rstHeader.EOF
   HeaderRequest.ADD rstHeader.Fields("Header")
   rstHeader.movenext
  Wend

I get the 12050 error when I try to add the header using 1 single .ADD but having the content of the header in 1 string variable.

this is what I am doing:

  HeaerRequest.ADD = Line1 & vbcrlf & Line2 & etc

  ObjDart.POST Data, HeaderRequest, DataReceived

I've also tried putting my header directly in the post Data and not using any RequestHeader but this causes my Dart HTTP object to create it's own header (which confuses the receiving site) is there a way to tell the Dartweb.HTTP object not to create a header?

Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 21, 2002 6:14 PM


Hi,
To Use the RequestHeaders parameter, first Reference DartSock.dll, then dim a DartStrings Collection:
Dim HeaderRequest As New DartStrings
HeaderRequest.Add "YourHeader1: Value"
HeaderRequest.Add "YourHeader2: Value"
etc.That should be it.
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX