| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: Problem with headers |
| feilerd david.feiler@wpginvest.com From: New York, NY USA Posts: 1 Member Since: 07/08/02 |
posted July 8, 2002 12:07 PM Every time I try to add a Dartstrings header to a POST call, I get a "Run-time error 9002: Parameter 2 of the method used is invalid or not appropriate" Here's a simple example of the problem (w/ a trivial login to Yahoo mail): Dim TestHeaders As New DartStrings Dim TestHTTP As New DartWeb.http Dim TestPostData As String, ReturnedPage As String TestHTTP.URL = "https://login.yahoo.com/config/login?.src=ym&.v=0&.u=bs2cf8kuibp9i&.last=&promo=&.intl=us&.bypass=&.partner=&.done=" TestPostData = "login=MyLogin&password=MyPassword" 'This works TestHTTP.Post TestPostData, , ReturnedPage MsgBox ReturnedPage, , "Submitted without touching headers" 'This doesn't work TestHTTP.Head TestHeaders MsgBox TestHeaders.All TestHTTP.Post TestPostData, TestHeaders, ReturnedPage MsgBox ReturnedPage, , "Submittted with manual headers" |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted July 8, 2002 5:37 PM Hi, Why are you including the server's response headers as the request headers for the Post? What happens if you do not do the Head first? Thanks, -ken |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|