'--------------------------------------------------------------------------- ' ' GetExtraHeaders() - Create the array of extra header structs ' ' Enumerate the keys in the [Extra Headers] section of the profile file, ' then get the value for each of the keys. '--------------------------------------------------------------------------- Private Sub GetExtraHeaders() Dim sList As String Dim i As Integer, j As Integer, l As Integer, n As Integer sList = GetProfile("Extra Headers", "") ' Get key list l = Len(sList) ' Length incl. trailing null i = 1 ' Start at 1st character n = 0 ' Index in array Do While ((i < l) And (n < MAX_XHDR)) ' Safety stop here j = InStr(i, sList, Chr$(0)) ' J -> next null CGI_ExtraHeaders(n).key = Mid$(sList, i, j - i) ' Get Key, then value CGI_ExtraHeaders(n).value = GetProfile("Extra Headers", CGI_ExtraHeaders(n).key) i = j + 1 ' Bump pointer n = n + 1 ' Bump array index Loop CGI_NumExtraHeaders = n ' Fill in global count End Sub