summaryrefslogtreecommitdiffabout
path: root/CrackURL.h
Side-by-side diff
Diffstat (limited to 'CrackURL.h') (more/less context) (show whitespace changes)
-rw-r--r--CrackURL.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/CrackURL.h b/CrackURL.h
new file mode 100644
index 0000000..2223740
--- a/dev/null
+++ b/CrackURL.h
@@ -0,0 +1,34 @@
+#ifndef __CRACKURL_H
+#define __CRACKURL_H
+
+#include "shared-code/RegEx.h"
+
+class CCrackURL {
+public:
+ static CString GetHostName(LPCTSTR url);
+ static CString InnermostURL(LPCTSTR url);
+ CString Build();
+ BOOL Adjust(CCrackURL& srcURL);
+ CString m_pathPath;
+ CString m_pathFile;
+ CString m_pathAnchor;
+ CString m_pathQuery;
+ CString m_urlRest;
+ BOOL Adjust(LPCTSTR srcURL);
+ CRegEx m_reHTTPReq;
+ CRegEx m_reUPHP;
+ CString m_URLPath;
+ UINT m_nPort;
+ CString m_Port;
+ CString m_Host;
+ CString m_Password;
+ CString m_User;
+ void ParseUPHP(CString& rest);
+ CString m_Schema;
+ CString m_URL;
+ BOOL Crack(LPCTSTR url);
+ CCrackURL();
+ CRegEx m_reSchema;
+};
+
+#endif // __CRACKURL_H