version 1.4.2.2, 2012/08/06 11:26:23
|
version 1.4.2.4, 2012/09/04 12:29:07
|
Line 61 typedef struct _tagURLItem {
|
Line 61 typedef struct _tagURLItem {
|
} url_Item_t; |
} url_Item_t; |
|
|
struct tagIOURL { |
struct tagIOURL { |
unsigned char url_line[BUFSIZ]; | ait_val_t url_line; |
|
|
url_Item_t url_tech; | ait_val_t url_tech; |
url_Item_t url_user; | ait_val_t url_user; |
url_Item_t url_pass; | ait_val_t url_pass; |
url_Item_t url_host; | ait_val_t url_host; |
url_Item_t url_port; | ait_val_t url_port; |
url_Item_t url_path; | ait_val_t url_path; |
url_Item_t url_args; | ait_val_t url_args; |
|
|
char *url_reserved; | unsigned char *url_reserved; |
}; |
}; |
|
|
struct tagReqXML { |
struct tagReqXML { |
Line 252 inline void www_unescape(char * __restrict str);
|
Line 252 inline void www_unescape(char * __restrict str);
|
/* |
/* |
* www_undot() - Undotted and clean WWW query filename |
* www_undot() - Undotted and clean WWW query filename |
* |
* |
* @fname = query filename | * @pname = query filename |
* @fnlen = filename length | * return: =NULL error or !=NULL allocated valid filename, after use you must call io_freeVar() |
* return: -1 error, 0 not valid filename or >0 validated filename length | |
*/ |
*/ |
int www_undot(const char * __restrict fname, int fnlen); | ait_val_t *www_undot(const char * __restrict pname); |
|
|
|
|
/* |
/* |
|
* www_URLInit() - Init URL structure and free old one |
|
* |
|
* @url = Input URL |
|
* return: -1 error or 0 ok |
|
*/ |
|
inline int www_URLInit(struct tagIOURL * __restrict url); |
|
/* |
|
* www_URLFree() - URL free structure |
|
* |
|
* @url = Input parsed URL |
|
* return: none |
|
*/ |
|
inline void www_URLFree(struct tagIOURL * __restrict url); |
|
/* |
* www_URLGet() - Parse and get data from input URL |
* www_URLGet() - Parse and get data from input URL |
* |
* |
* @csURL = Input URL line |
* @csURL = Input URL line |
Line 267 int www_undot(const char * __restrict fname, int fnlen
|
Line 280 int www_undot(const char * __restrict fname, int fnlen
|
* return: 0 error format not find tech:// and return URL like path; |
* return: 0 error format not find tech:// and return URL like path; |
* -1 error:: can`t read; >0 ok, up bits for known elements |
* -1 error:: can`t read; >0 ok, up bits for known elements |
*/ |
*/ |
int www_URLGet(const char *csURL, struct tagIOURL *url); | int www_URLGet(const char *csURL, struct tagIOURL * __restrict url); |
/* |
/* |
* www_URLGetFile() - Get file from parsed URL |
* www_URLGetFile() - Get file from parsed URL |
* |
* |
* @url = Input parsed URL |
* @url = Input parsed URL |
* @psValue = Return filename, if not specified file in url path, replace with / | * @value = Return filename, if not specified file in url path, replace with / |
* @valLen = Size of psValue array | * return: -1 error, 0 filename from path, 1 filename or 2 not specified filename |
* return: -1 error:: can`t read; 0 ok | |
*/ |
*/ |
int www_URLGetFile(struct tagIOURL *url, char * __restrict psValue, int valLen); | int www_URLGetFile(struct tagIOURL * __restrict url, ait_val_t * __restrict value); |
|
|
/* |
/* |
* www_XMLGet() - Parse and get data from input XML request string |
* www_XMLGet() - Parse and get data from input XML request string |