Results 1 to 2 of 2

Thread: inet or wininet.dll "POST" requests don't!

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    New Jersey
    Posts
    1

    Exclamation

    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

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width