Rev 7758 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7758 | Rev 7863 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | content_length = EDI.http_msg.content_length; |
49 | content_length = EDI.http_msg.content_length; |
50 | content_received = EDI.http_msg.content_received; |
50 | content_received = EDI.http_msg.content_received; |
Line 51... | Line 51... | ||
51 | 51 | ||
Line 52... | Line 52... | ||
52 | } |
52 | } |
53 | 53 | ||
54 | bool _http::handle_redirect() |
54 | :bool _http::handle_redirect() |
55 | { |
55 | { |
56 | dword redirect; |
56 | dword redirect; |
57 | http_find_header_field stdcall (transfer, "location\0"); |
57 | http_find_header_field stdcall (transfer, "location\0"); |
Line 150... | Line 150... | ||
150 | == CHECK PATH TYPE == |
150 | == CHECK PATH TYPE == |
151 | == == |
151 | == == |
152 | =====================================*/ |
152 | =====================================*/ |
Line 153... | Line 153... | ||
153 | 153 | ||
154 | 154 | ||
155 | int check_is_the_adress_local(dword _in) |
155 | :int check_is_the_adress_local(dword _in) |
156 | { |
156 | { |
157 | if (ESBYTE[_in]!='/') return false; |
157 | if (ESBYTE[_in]!='/') return false; |
158 | _in++; |
158 | _in++; |
Line 166... | Line 166... | ||
166 | if(!strncmp(_in,"usbhd",5)) return true; |
166 | if(!strncmp(_in,"usbhd",5)) return true; |
167 | if(!strncmp(_in,"kolibrios",9)) return true; |
167 | if(!strncmp(_in,"kolibrios",9)) return true; |
168 | return false; |
168 | return false; |
169 | } |
169 | } |
Line 170... | Line 170... | ||
170 | 170 | ||
171 | int check_is_the_url_absolute(dword _in) |
171 | :int check_is_the_url_absolute(dword _in) |
172 | { |
172 | { |
173 | if(!strncmp(_in,"ftp:",4)) return true; |
173 | if(!strncmp(_in,"ftp:",4)) return true; |
174 | if(!strncmp(_in,"http:",5)) return true; |
174 | if(!strncmp(_in,"http:",5)) return true; |
175 | if(!strncmp(_in,"https:",6)) return true; |
175 | if(!strncmp(_in,"https:",6)) return true; |
Line 179... | Line 179... | ||
179 | if(!strncmp(_in,"WebView:",8)) return true; |
179 | if(!strncmp(_in,"WebView:",8)) return true; |
180 | if(check_is_the_adress_local(_in)) return true; |
180 | if(check_is_the_adress_local(_in)) return true; |
181 | return false; |
181 | return false; |
182 | } |
182 | } |
Line 183... | Line 183... | ||
183 | 183 | ||
184 | void get_absolute_url(dword _rez, _base, _new) |
184 | :void get_absolute_url(dword _rez, _base, _new) |
185 | { |
185 | { |
186 | int i; |
186 | int i; |
187 | //case: ./valera.html |
187 | //case: ./valera.html |
188 | if (!strncmp(_new,"./", 2)) _new+=2; |
188 | if (!strncmp(_new,"./", 2)) _new+=2; |