Darkeyce
Aug 24th, 2000, 09:07 AM
Can anyone give me an idea of why INET and wininet.dll "POST" requests don't let me add "Cookie" headers?
I can add ANY other header (even bogus ones) but "Cookie:" seems to be blocked.
I'm using straight VB6 sp4. Code Frag follows;
<fragment>
Case cSIGNIN
varServlet = "Login"
sPath = varhost & "/" & varURL & "/" & varServlet
sHeader = ctypes & clen & vbCrLf & vbCrLf
Inet1.Execute sPath, "POST", strWorkingFile, sHeader
Do While Inet1.StillExecuting ' loop till response
DoEvents
Loop
</fragment>
The above fragment works excpet for the sHeaders...If i include multiple headers, all are added except the "cookie".
Thanks
Christopher
I can add ANY other header (even bogus ones) but "Cookie:" seems to be blocked.
I'm using straight VB6 sp4. Code Frag follows;
<fragment>
Case cSIGNIN
varServlet = "Login"
sPath = varhost & "/" & varURL & "/" & varServlet
sHeader = ctypes & clen & vbCrLf & vbCrLf
Inet1.Execute sPath, "POST", strWorkingFile, sHeader
Do While Inet1.StillExecuting ' loop till response
DoEvents
Loop
</fragment>
The above fragment works excpet for the sHeaders...If i include multiple headers, all are added except the "cookie".
Thanks
Christopher