PDA

Click to See Complete Forum and Search --> : inet or wininet.dll "POST" requests don't!


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

Dim
Aug 24th, 2000, 07:20 PM
Are you trying to create a cookie or simply posting one when you log onto a site or something?
If you are posting, then i would suggest using a packet sniffer, simulate the actions in IE and find the exact parameters of that cookie.
If you are creating your own...i'm not sure but i think you might be missing some parts.

Hope that helps,
D!m