J
JamesB
Dim enc As New System.Text.ASCIIEncoding
If enc.GetString(GetStr) = "GET" Then
Dim GetURL() As Byte
Sys.Marshal.Copy(pPkt, GetURL, OffsetRes + 4, 32)
WebPage = enc.GetString(GetURL) 'Mid(enc.GetString(GetURL), 1,
InStr(enc.GetString(GetURL), "HTTP"))
End If
When stepping through the code, it highlights the sys.marshal.copy... line
and then skips back up to the top. No errors etc.
pPkt is an IntPtr containing a TCP Packet. This section of code is only
called if 3 bytes come out as "GET" as a string. (I am trying to pull out
the following data to get the actual web resource being used)
If enc.GetString(GetStr) = "GET" Then
Dim GetURL() As Byte
Sys.Marshal.Copy(pPkt, GetURL, OffsetRes + 4, 32)
WebPage = enc.GetString(GetURL) 'Mid(enc.GetString(GetURL), 1,
InStr(enc.GetString(GetURL), "HTTP"))
End If
When stepping through the code, it highlights the sys.marshal.copy... line
and then skips back up to the top. No errors etc.
pPkt is an IntPtr containing a TCP Packet. This section of code is only
called if 3 bytes come out as "GET" as a string. (I am trying to pull out
the following data to get the actual web resource being used)