Results 1 to 40 of 57

Thread: VB6 - Yet Another Web Server

Threaded View

  1. #21
    Hyperactive Member
    Join Date
    Mar 2018
    Posts
    462

    Re: VB6 - Yet Another Web Server

    Quote Originally Posted by couttsj View Post
    I need some clarification on the use of "RespExtraHeaders". This is one of several variables (RespStatus, RespStatusText, RespMIME, RespExtraHeaders, and RespBody) that can get a return value in the DynamicRequest event because they are declared ByRef. DllHell has already demonstrated to us the use of RespStatus, RespStatusText, RespMIME, & RespBody, but the use of RespExtraHeaders evades me.
    you can use it to add cookies. you can also use it to send data that isn't part of the header spec (see the "x-" headers in this list https://developer.mozilla.org/en-US/...esponse_header)

    Quote Originally Posted by couttsj View Post
    In the SendResponse Subroutine, it appears that if ExtraHeaders contains "Last-Modified:", it would get added twice. How and when are ExtraHeaders utilized?
    it would get added twice. you want to use the extraheaders for things that are not already included: things specific to your server impl or your application.

    important to note that the extraheaders are only useful if the receiving end knows how to handle them and are typically used for debugging or to provide additional info to developers about the request. For example, you may have a "X-powered-by: yourapp.exe/1.0.2" to know what version of your exe is on the other end.
    Last edited by DllHell; Sep 25th, 2020 at 01:38 PM.

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