1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00
Commit Graph

784 Commits

Author SHA1 Message Date
Witold Filipczyk
0e3b868b15 [fsp2] Compilation fixes for dos 2023-07-08 09:32:39 +02:00
Witold Filipczyk
1a5f77f1f4 [curl] Compilation fixes 2023-07-08 09:30:55 +02:00
Witold Filipczyk
b5e9fa400d [fsp] Do not compile both 2023-07-08 08:50:54 +02:00
Witold Filipczyk
0e482b02da [fsp] fsp protocol support non-forking version based on fsplib
Maybe under DOS it makes sense.
It works worse than with fsplib. You can only download one file at a time.
2023-07-07 21:49:39 +02:00
Azamat H. Hackimov
393bf23a26 Fix compilation with Perl 5.38
Perl now includes own `struct object` which clashes with elinks
implementation. Renamed `struct object` to `struct elinks_object` to
avoid it.

Bug: https://bugs.gentoo.org/909042
2023-07-03 14:12:22 +03:00
Witold Filipczyk
5ca979844b [Makefiles] Added --with-libcurl configure option 2023-07-02 14:49:51 +02:00
Witold Filipczyk
36b802251d [curl] Ask for password for http 2023-07-01 09:29:55 +02:00
Witold Filipczyk
9389e2f903 [curl] Send username and password in http 2023-07-01 09:07:22 +02:00
Witold Filipczyk
008eacef69 [curl] no verify 2023-06-30 16:30:44 +02:00
Witold Filipczyk
e734a41df9 [curl] Show error also for FTP 2023-06-30 16:13:00 +02:00
Witold Filipczyk
df4a2bedbf [curl] Display curl error 2023-06-30 15:57:39 +02:00
Witold Filipczyk
62c42d41e3 [curl] redirect also for 302 2023-06-29 19:52:24 +02:00
Witold Filipczyk
e3fae6e678 [curl] Added bool option "protocol.http.use_curl" 2023-06-29 16:39:17 +02:00
Witold Filipczyk
6860965646 [curl] HTTP_USERAGENT 2023-06-29 16:26:20 +02:00
Witold Filipczyk
5a697f8457 [curl] free list 2023-06-29 16:11:49 +02:00
Witold Filipczyk
cbd811b4fb [curl] http POST with file uploads, reused code from http/post.c 2023-06-29 16:03:36 +02:00
Witold Filipczyk
fc6f1278eb [curl] Try HTTP3
Does not work for me.
2023-06-29 10:46:09 +02:00
Witold Filipczyk
502d726580 [curl] plain POST (not file uploads) 2023-06-28 16:45:38 +02:00
Witold Filipczyk
4a7cfb8778 Merge branch 'master' into http2 2023-06-28 12:40:56 +02:00
Witold Filipczyk
c6dfd4a55e [test] Compilation fix 2023-06-28 12:33:25 +02:00
Witold Filipczyk
9bf5494a6a [curl] ACCEPT_ENCODING "" 2023-06-25 19:00:26 +02:00
Witold Filipczyk
5e35e906dc [curl] Begining of curl's http 2023-06-25 18:21:35 +02:00
Witold Filipczyk
651e4e72e8 [config] curl's ftp related code requires libevent. Refs #240
It does not compile with libev.
2023-06-22 20:07:08 +02:00
Witold Filipczyk
e69168c58a [ftp] Added bool option "protocol.ftp.use_curl" 2023-06-22 19:39:13 +02:00
Witold Filipczyk
16a3732382 [curl] Removed blocking code 2023-06-21 19:35:13 +02:00
Witold Filipczyk
e53f7d8286 [sftp] Restart connection and add / in case of error 2023-06-21 19:32:06 +02:00
Witold Filipczyk
285fe378b5 [ftpes] Non-blocking way to add '/' to directory. 2023-06-21 19:25:48 +02:00
Witold Filipczyk
5c0e8fb889 [sftp] Workaround for symlink to directory
Won't work for files with 4096 bytes size, or bigger directories.
2023-06-21 17:47:41 +02:00
Witold Filipczyk
430c3fea93 [ftpes] Check existence of file in blocking way 2023-06-21 17:24:36 +02:00
Witold Filipczyk
2f32ca5611 [curl] Check g.multi 2023-06-20 09:30:14 +02:00
Witold Filipczyk
a2a06df24a [curl] NOPROGRESS 2023-06-20 09:25:33 +02:00
Witold Filipczyk
853e8c544e [curl] Store estimated length for ftpes and sftp. 2023-06-20 08:51:34 +02:00
Witold Filipczyk
c3943a441f [ftp] done_ftpes function for cleanup 2023-06-19 21:50:50 +02:00
Witold Filipczyk
a67188413c [lists] LIST_HEAD -> LIST_HEAD_EL to not clash with libevent's LIST_HEAD. Also added curl implementation of ftpes and sftp
Implementation of ftpes and sftp is based on curl's hiperfifo example. It requires libevent.
ftpes only encrypts control channel. There were problems when both control and data were encrypted. It stucked on SIZE.
Only successful connections work, errors are not handled properly.
2023-06-19 18:43:53 +02:00
Witold Filipczyk
b7bb7fc403 [sftp] Copy-paste (fork and curl)
Did not test with keys. User/password works on test connection.
2023-06-17 19:06:43 +02:00
Witold Filipczyk
6b04aff968 [ftpes] Test ftpes implementation (fork and curl).
Explicit FTP over TLS. Works, but it is slow.
2023-06-17 17:48:45 +02:00
Witold Filipczyk
dc37be3b60 [uri] Encode only bytes with highest bit set. Refs #226
It is not good, but before it was worse.
Characters like ? and = were encoded.
2023-04-27 14:28:19 +02:00
Witold Filipczyk
9ac7f48f19 [test] Removed gettext from dependencies. Refs #218 2023-04-24 09:32:10 +02:00
Witold Filipczyk
7a665d8de4 [uri] Introduced function encode_uri_string_percent. Refs #221
This function is similar to encode_uri_string, but does not
encode percents.
2023-04-23 15:05:58 +02:00
Witold Filipczyk
060abde3d6 [config] Changed in more places ~/.elinks -> ~/.config/elinks 2023-01-26 12:41:46 +01:00
Witold Filipczyk
acf7527624 [idn] Back to idn2_to_ascii_8z
Previous function did not work under DOS for me.
2023-01-03 17:16:03 +01:00
Witold Filipczyk
8cb69b3832 [meson] libidn2 2023-01-02 17:09:24 +01:00
Robert Scheck
b8ae8297e8 Port ELinks to libidn2
Bug: https://bugzilla.redhat.com/1098789
2023-01-02 09:28:34 +01:00
Witold Filipczyk
f03d1ea44d [meson] Do not build test programs by default
If you want run tests, pass -Dtest=true to meson
and run "meson test" at the end.
2022-11-30 10:17:49 +01:00
Witold Filipczyk
294732babc [test] compilation fixes 2022-11-21 19:09:50 +01:00
Witold Filipczyk
f1f18ace45 [document] Try to set system charset. 2022-11-10 13:25:37 +01:00
Witold Filipczyk
c086cbe26e [color] Removed code related to draw_text_node
This idea failed. Code was slow.
2022-10-16 15:18:34 +02:00
Witold Filipczyk
3276cb75a1 [tests] compilation fix 2022-10-13 15:53:54 +02:00
Witold Filipczyk
a801578d27 [tests] fixes 2022-10-08 11:05:15 +02:00
Witold Filipczyk
6e83bbf23c [tests] build_by_default: false for executables.
It does not work, but this as a meson issue.
2022-10-07 19:56:54 +02:00
Witold Filipczyk
917378f766 [tests] should_fail not needed 2022-10-07 15:53:20 +02:00
Witold Filipczyk
caf277ff3f [tests] cheat in get-translated-uri test with leading // 2022-10-07 15:34:32 +02:00
Witold Filipczyk
58387c5a50 [tests] sh -> bash in test-ftp-parser 2022-10-06 18:28:34 +02:00
Witold Filipczyk
0b8230863d [tests] added dom tests, some of them fail 2022-10-05 19:43:27 +02:00
Witold Filipczyk
92e9ab116a [tests] temprary should_fail 2022-10-05 18:36:28 +02:00
Witold Filipczyk
7048acab00 [tests] Temporarily set should_fail for get-translated-uri test 2022-10-05 18:34:03 +02:00
Witold Filipczyk
9a677dc5f5 [tests] normalize-uri 2022-10-05 18:27:38 +02:00
Witold Filipczyk
9cb4f4544e [test] compilation fixes 2022-10-03 19:38:22 +02:00
Witold Filipczyk
faff6b9b63 ascii replacements for linux virtual terminals
Patch by sgerwk, slightly modified. Taken from Debian.
2022-10-03 17:55:20 +02:00
Witold Filipczyk
f2cca12915 [http] Set POST_BUFFER_SIZE to 4096
Patch from Debian
2022-10-03 17:39:39 +02:00
Witold Filipczyk
8c2f1092f6 [uri] Do not return earlier. Check also POST 2022-09-27 19:54:24 +02:00
Witold Filipczyk
ff495c7716 Merge branch 'master' into mujs 2022-08-18 10:06:27 +02:00
Witold Filipczyk
361b8f661d [long] long -> intptr_t . Refs #8304
AFAIK on Windows long is sizeof 4, while void * is sizeof 8.
intptr_t is the same sizeof as void *.
2022-08-17 20:48:58 +02:00
Witold Filipczyk
63027feabc [mujs] small success window.alert('Thu'); 2022-08-04 20:01:26 +02:00
Witold Filipczyk
172c32a64c [cpp] All files suspected for any C++ relation renamed to cpp
Now (in meson) .c files are compiled by C compiler and .cpp by C++ compiler.
2022-07-31 16:44:11 +02:00
Witold Filipczyk
4811d20a30 [dgi] Unification.
one fuction prepare_command instead of two very similar.
2022-07-14 22:29:24 +02:00
Witold Filipczyk
7ea04c7f0f [isspace] Some implementations of isspace require unsigned char 2022-06-28 20:25:06 +02:00
Witold Filipczyk
797f1e8a8f [dgi] suppress warning 2022-06-25 16:17:43 +02:00
Witold Filipczyk
ad646029e3 [bittorrent] signed char is not sufficient for va_arg 2022-06-23 21:39:11 +02:00
Witold Filipczyk
57ac78bcdd [protocol] Added option protocol.default_protocol . Refs #174 2022-06-14 18:43:09 +02:00
Witold Filipczyk
409334369b [http] Changed default Accept-Header . Refs #143 2022-06-07 10:35:57 +02:00
Witold Filipczyk
47a9356259 [idn] convert_string instead of iconv 2022-06-06 16:04:06 +02:00
Witold Filipczyk
cd0ec0faa9 [Makefile] DRY 2022-06-05 14:25:25 +02:00
Witold Filipczyk
09e3f044da [test] Fix building tests
mailcap test was too hard to build, so skip for now.
2022-06-03 15:09:12 +02:00
Witold Filipczyk
22e8a83472 [idn] Convert domain name to utf-8 from gettext codepage. 2022-06-01 22:24:07 +02:00
Witold Filipczyk
a78f3a0891 [http] Fix issue with uploading files on DOS 2022-05-22 13:39:27 +02:00
Witold Filipczyk
8b1d180f8b [dgi] Simplification. 2022-05-21 20:48:31 +02:00
Witold Filipczyk
74b1967ce7 [dgi] compilation fix 2022-05-21 20:14:12 +02:00
Witold Filipczyk
443d42608d [dgi] Experimental DGI support.
Dos Gateway Interface was introduced by Arachne browser.
I tested two cases:
file/cdplayer.dgi   |[7]$ecdplayer.exe $s
application/pdf pdf>txt|$epdftotext $1 $2
2022-05-21 18:18:55 +02:00
Witold Filipczyk
24c5295a28 [dgi] compilation fixes. 2022-05-18 21:20:45 +02:00
Witold Filipczyk
7af65e06a0 [dgi] Many config options 2022-05-18 21:00:12 +02:00
Witold Filipczyk
ced830020b [dgi] Some code for cdplayer.dgi 2022-05-17 22:21:16 +02:00
Witold Filipczyk
f4979cb5a4 [dgi] Beginning. Not compilable code 2022-05-16 22:01:41 +02:00
Witold Filipczyk
852e024c40 [uri] Let enter c:\ in goto url dialog 2022-05-10 21:11:48 +02:00
Witold Filipczyk
0e7507b285 [dos] Do not define CONFIG_OS_UNIX for DOS 2022-05-10 20:19:42 +02:00
Witold Filipczyk
bc54b7c5d0 [bittorrent] compilation fix 2022-04-23 16:24:43 +02:00
Unknown
01319aafd2 [ win64 ] build_win64.sh, doc etc. 2022-04-22 21:47:52 +02:00
Witold Filipczyk
0df4ef0571 [http] protocol.http.accept option . Refs #143 2022-04-20 11:24:23 +02:00
Witold Filipczyk
66137e8f7d [bittorrent] removed commented code 2022-03-19 10:14:25 +01:00
Witold Filipczyk
b2c7566544 [dialogs] _node 2022-03-18 19:22:38 +01:00
Witold Filipczyk
179e30aa12 [bittorrent] draw_*_node
There will be some issue with inverted colors.
2022-03-16 18:45:05 +01:00
Witold Filipczyk
2c2cf97e03 [options] No need for C_ macro in INIT_OPT_* 2022-03-02 19:02:47 +01:00
Witold Filipczyk
c2182097a9 [dumb] removed freshmeat , added freshcode.club (fc) 2022-02-27 16:50:52 +01:00
Witold Filipczyk
d8b13d695a [http] const header_field 2022-02-21 17:58:36 +01:00
Witold Filipczyk
194a34a4be [http] const code 2022-02-21 17:55:31 +01:00
Witold Filipczyk
18d0a9cd9c [data] const type 2022-02-21 17:52:17 +01:00
Witold Filipczyk
3930d6a89a [file] const redirect_location 2022-02-21 17:47:48 +01:00
Witold Filipczyk
fe516f532c [nntp] explicit cast to char * 2022-02-21 17:42:35 +01:00
Witold Filipczyk
47364e12f2 [rewrite] const in rewrite_uri 2022-02-21 17:36:39 +01:00
Witold Filipczyk
cc56055f1f [nntp] const protocol 2022-02-21 17:18:35 +01:00