|
-
Aug 24th, 2000, 09:07 AM
#1
Thread Starter
New Member
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
-
Aug 24th, 2000, 07:20 PM
#2
Fanatic Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|