00001 00002 00003 00004 00005 #ifndef __INET_TOOLS_H 00006 #define __INET_TOOLS_H 00007 00008 #include "GContainers.h" 00009 #include "LgiNetInc.h" 00010 00012 class LgiNetClass GInetHeader 00013 { 00014 public: 00015 char *Name; 00016 char *Str; 00017 00018 GInetHeader(char *n = 0, char *s = 0) 00019 { 00020 Name = n; 00021 Str = s; 00022 } 00023 00024 ~GInetHeader() 00025 { 00026 DeleteArray(Name); 00027 DeleteArray(Str); 00028 } 00029 }; 00030 00032 LgiNetFunc void InetTokeniseHeaders(List<GInetHeader> &Out, const char *In); 00033 00035 LgiNetFunc char *InetGetField(const char *s); 00036 00038 LgiNetFunc char *InetGetHeaderField(const char *Headers, const char *Field, int Len = -1); 00039 00041 LgiNetFunc char *InetGetSubField(const char *s, const char *Field); 00042 00044 LgiNetFunc char *InetRemoveField(char *Headers, const char *Field); 00045 00047 LgiNetFunc char *InetGetAllHeaders(const char *s); 00048 00050 LgiNetFunc char *InetExtractBoundary(const char *Field); 00051 00052 #endif