| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: RequestHeaders problem in Post Method |
| ahanovich From: Palo Alto, CA USA Posts: 1 Member Since: 08/23/02 |
posted August 23, 2002 3:53 PM Hi.. here is my code: Dim dTest As DartWeb.Http Dim sHeadertest As New DartStrings Dim Data As String Dim sName As String Dim sPassword As String Set dTest = New DartWeb.Http dTest.Url= "http://localhost/CookieTest/test2.aspx" sHeadertest.Add "username: a" sHeadertest.Add "password: h" MsgBox sHeadertest.All dTest.Post SendString, sHeadertest, Data on my test2.aspx page, I am looking for a Header called "username" and one called "password"... unfortunately, instead of the "username" header being "a" like it should be, it turns out to be "apassword: h"... what is going on here? I can't seem to post more than 1 request header correctly... can you please tell me how or what I am doing wrong? thanks. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted August 23, 2002 4:11 PM Hi, You should either add a CRLF at the end of each of your headers, or change the DartStrings delimiter to CRLF (but not both). -ken |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|