aboutsummaryrefslogtreecommitdiffstats
path: root/url.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-01-02New upstream version 0.5.3+git20210102upstream/0.5.3+git20210102upstreamTatsuya Kinoshita1-54/+251
2011-05-04Adding upstream version 0.5.3upstream/0.5.3Tatsuya Kinoshita1-13/+27
2011-05-04Adding upstream version 0.5.2upstream/0.5.2Tatsuya Kinoshita1-12/+18
2011-05-04Adding upstream version 0.5.1upstream/0.5.1Tatsuya Kinoshita1-0/+2216
2010-12-15[w3m-dev 04424] http://www.j10n.org/files/w3m-cvs-1.1040-misc.patchIto Hiroyuki1-11/+17
2010-12-11[w3m-dev 04421] Patch to prevent sending Referer: ' header from HTTPS to HTTPIto Hiroyuki1-1/+7
2010-08-03* register user name and password for proxy authentication.Ito Hiroyuki1-3/+1
* remove option -pauth
2010-07-20* url.c (openSSLHandle): add support for TLS SNI (Server NameIndication)Ito Hiroyuki1-1/+4
2010-07-18http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=242599#21Ito Hiroyuki1-1/+2
* file.c (is_html_type): added. (examineFile, loadGeneralFile, _saveBuffer) (openGeneralPagerBuffer, reloadBuffer): use is_html_type() instead of strcasecmp(). (loadGeneralFile): set f.guess_tupe * display.c (displayBuffer): use is_html_type() instead of strcasecmp(). * buffer.c (reshapeBuffer): use is_html_type() instead of strcasecmp(). * backend.c (internal_get): use is_html_type() instead of strcasecmp().
2007-05-23[w3m-dev 04155] fix for minpw.Dai Sato1-1/+10
2006-12-10add LiveHTTPHeaders-like option: -reqlog.Dai Sato1-9/+5
2006-05-29[w3m-dev-en 01067] decode content-encoding in all situations.Dai Sato1-2/+3
2006-04-07rewind to 10 Feb 2006.Dai Sato1-10/+1
2006-04-05apply multiple patches on w3m-dev(-en) ML since Jun 2005 to Jan 2006.Dai Sato1-1/+10
2006-02-10replace pclose passed to localcgi_post/get() with fclose in openURL()Dai Sato1-3/+3
2004-04-16[w3m-dev 04064] authenticationFumitoshi UKAI1-28/+1
closes: Bug#:244029: w3m: HTTP basic authentication annoyance * fm.h (auth_cookie): deleted * proto.h (find_auth_cookie): deleted (add_auth_cookie): deleted (add_auth_user_passwd): added (invalidate_auth_user_passwd): added * etc.c (auth_pass): add bad flag delete file (dir_under): deleted (add_auth_pass_entry): add override flag no need to check file (find_auth_pass_entry): delete file check bad flag check uname (find_auth_user_passwd): find by pu->user (add_auth_user_passwd): added (invalidate_auth_user_passwd): added (parsePasswd): add no override ignore file (find_auth): deleted (find_auth_cookie): deleted (dump_auth_cookie): deleted (add_auth_cookie): deleted * file.c (getAuthCookie): add *uname, *pwd rewrite (loadGeneralFile): delete ss, add uname, pwd use add_auth_user_passwd instead of add_auth_cookie * url.c (HTTPrequest): don't authorization here it should be done in getAuthCookie in loadGeneralFile through extra_header * ftp.c (openFTPStream): add uname use find_auth_user_passwd instead of find_auth_cookie use add_auth_user_passwd instead of add_auth_cookie
2004-03-30[w3m-dev 04050] SSL verifyFumitoshi UKAI1-2/+3
* url.c (openSSLHandle): don't load verify locations if both ssl_ca_file and ssl_ca_path is NULL. From: AIDA Shinra <shinra@j10n.org>
2003-12-08[w3m-dev 04024] fix: drive letterFumitoshi UKAI1-3/+14
* url.c (parseURL2): fix for SUPPORT_DOS_DRIVE_PREFIX From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
2003-10-22[w3m-dev 04011] accessing to an `https' URI with a fragment via a proxyFumitoshi UKAI1-5/+4
* url.c (HTTPrequestURI): drop fragment (openURL): don't clear pu->label From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
2003-10-20#include <openssl/...>Fumitoshi UKAI1-4/+4
suggested by ABE Yuji <cbo46560@pop12.odn.ne.jp> [w3m-dev 03998] problem about pkg-config check for OpenSSL * html.h: #include <openssl/...> * istream.c: ditto * istream.h: ditto * url.c: ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-10-19[w3m-dev 04002] Re: function and w3m-controlFumitoshi UKAI1-2/+2
* url.c (getURLScheme): accept numeric in scheme From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
2003-09-26add commentsFumitoshi UKAI1-1/+3
2003-09-22[w3m-dev 03967] Re: IPv4/IPv6 only option patchFumitoshi UKAI1-3/+7
* NEWS: options: -4, -6 * fm.h (DNS_ORDER_INET_ONLY): added (DNS_ORDER_INET6_ONLY): added (ai_family_order_table): [3]->[7] * main.c (fusage): add -4/-6 (main): -4/-6 mapped to dns_order=4/dns_order=6 * rc.c (dnsorders): add DNS_ORDER_INET_ONLY, DNS_ORDER_INET6_ONLY * url.c (dnsorders): add 3-6 From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-06-17fix indentFumitoshi UKAI1-60/+59
2003-06-17[w3m-dev 03914] a fragment in the Referer URIFumitoshi UKAI1-2/+9
* url.c (otherinfo): strip URI fragment From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
2003-05-10[w3m-dev 03891] Re: urimethodmap and relative URLFumitoshi UKAI1-1/+11
* url.c (parseURL2): copy scheme part into pu->file when SCM_UNKNOWN From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-04-14[w3m-dev 03875] Re: SSL & compressed streamFumitoshi UKAI1-2/+2
* file.c (loadGeneralFile): check t_buf != NULL * url.c (openURL): don't initialize URLFile here (init_stream): 0 clear URLFile From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-04-13[w3m-dev 03873] SSL & compressed streamFumitoshi UKAI1-1/+2
* file.c (loadGeneralFile): always update ssl_certificate * url.c (openURL): initialize URLFile From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-03-14fix typoFumitoshi UKAI1-2/+2
2003-03-13[w3m-dev 03823] Re: etc.c: treatment for "%7E" is added to expandName()Fumitoshi UKAI1-3/+3
* url.c (parseURL2): file unquote * etc.c (expandName): revert previous changes From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-05[w3m-dev 03730] display decoded URLFumitoshi UKAI1-2/+2
* anchor.c (link_list_panel): support DecodeURL * display.c (make_lastline_link): support DecodeURL * etc.c (url_unquote_conv): added * fm.h (DecodeURL): added * history.c (historyBuffer): support DecodeURL * indep.c (QUOTE_MAP): added (HTML_QUOTE_MAP): added (html_quote_char): deleted (url_quote): use is_url_quote (file_quote): use is_file_quote (is_url_safe): deleted (Str_form_quote): use is_url_unsafe (Str_url_unquote): add safe args (is_shell_safe): delete (shell_quote): use is_shell_unsafe * indep.h (QUOTE_MAP): added (HTML_QUOTE_MAP): added (HTML_QUOTE_MASK): added (SHELL_UNSAFE_MASK): added (URL_QUOTE_MASK): added (FILE_QUOTE_MASK): added (URL_UNSAFE_MASK): added (GET_QUOTE_TYPE): added (is_html_quote): added (is_shell_unsafe): added (is_url_quote): added (is_file_quote): added (is_url_unsafe): added (html_quote_char): added (html_quote_char): deleted (Str_url_unquote): added safe (form_unquote): Str_url_unquote changes * linein.c (_prev): support DecodeURL (_next): ditto * main.c (goURL0): support DecodeURL (_peekURL): ditto (curURL): ditto * map.c (follow_map_panel): support DecodeURL (append_map_info): ditto (append_link_info): ditto (append_frame_info): ditto (page_info_panel): ditto * menu.c (initSelectMenu): delete SCM_LOCAL_CGI support DecodeURL (initSelTabMenu): delete SCM_LOCAL_CGI support DecodeURL (link_menu): support DecodeURL * parsetagx.c (parse_tag): is_html_quote * proto.h (url_unquote_conv): added * rc.c (CMT_DECODE_URL): added (params1): add decode_url * url.c (openURL): Str_url_unquote non safe From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-05[w3m-dev 03728] IPv6 hostnameFumitoshi UKAI1-19/+9
* url.c (parseURL): rewrite IPv6 address parser From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-31[w3m-dev 03721] PATH_INFO support of local CGIFumitoshi UKAI1-37/+9
* local.c (CGIFN_DROOT): deleted (CGIFN_LIBDIR): added (CGIFN_MODE): deleted (CGIFN_CONTAIN_SLASH): deleted (check_local_cgi): rewrite (cgi_filename): rewrite (localcgi_post): support PATH_INFO * url.c (openURL): rewrite * Bonus/smb.cgi: use PATH_INFO From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29[w3m-dev-en 00852] Re: Enhancement: content type detection of filesFumitoshi UKAI1-15/+9
* url.c (DefaultGuess): remove upppercases (guessContentTypeFromTable): rewrite, strcasecmp From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29[w3m-dev 03708] Re: Don't stop loading image when moving to next page.Fumitoshi UKAI1-19/+8
* config.h.dist (lstat): define ifndef HAVE_LSTAT * configure (config.h) ditto * display.c (fmTerm): new loadImage (save_current_buf): only ifdef USE_BUFINFO (displayBuffer): new loadImage * etc.c (setup_child): TrapSignal * file.c (loadGeneralFile): TRAP_OFF, TRAP_ON (loadHTMLstream): ditto (loadGopherDir): ditto (loadBuffer): ditto (loadImageBuffer): ditto (getNextPage): ditto (save2tmp): ditto * fm.h (TrapSignal): added (TRAP_ON): added (TRAP_OFF): added * form.c (HAVE_LSTAT): deleted * frame.c (createFrameFile): TRAP_OFF, TRAP_ON * image.c (image_buffer): added (deleteImage): new loadImage (getAllImage): initialize image_buffer (loadImage): rewrite * main.c (main): new loadImage (checkDownloadList): remove ifdef HAVE_LSTAT * news.c (loadNwesgroup): TRAP_ON, TRAP_OFF * proto.h (loadImage): add buf arg * url.c (openSocket): TRAP_ON, TRAP_OFF (check_no_proxy): TRAP_ON, TRAP_OFF From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-17[w3m-dev 03647] expandName() and expandPath()Fumitoshi UKAI1-3/+3
* etc.c (openSecretFile): use expandPath (expandName): rewrite (file_to_url): use expandPath * file.c (_doFileCopy): use expandPath (doFileSave): use expandPath * indep.c (expandPath): rewrite * linein.c (inputLineHistSearch): use expandPath (next_dcompl): use expandPath (doComplete): use expandPath * local.c (set_cgi_environ): rewrite * mailcap.c (loadMailcap): use expandPath * main.c (svBuf): use expandPath (addDownloadList): use expandPath * rc.c (init_rc): use expandPath (rcFile): rewrite (auxbinFile): use expandPath (libFile): use expandPath (etcFile): use expandPath (helpFile): use expandPath * url.c (loadMimeTypes): use expandPath (loadURIMethods): use expandPath From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-11[w3m-dev 03633] Re: cleanup (don't close connection of news server)Fumitoshi UKAI1-7/+1
* file.c (FTPhalfclose): deleted (loadGeneralFile): closeFTP when doFileSave is done (_doFileCopy): return int (doFileMove): return int (doFileSave): return int * ftp.c: rewrite * main.c (w3m_exit): disconnectFTP * proto.h (_doFileCopy): return int (doFileMove): return int (doFileSave): return int (openFTP): deleted (openFTPStream): return InputStream (closeFTP): no arg (Ftpfclose): disconnectFTP * url.c (openFTPstream): deleted From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10[w3m-dev 03626] Re: relative URLFumitoshi UKAI1-2/+4
* url.c (parseURL2): copy if scheme is local or local-cgi From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-08[w3m-dev 03616] Re: data: URL schemeFumitoshi UKAI1-7/+59
* file.c (loadGeneralFile): check SCM_DATA (loadImageBuffer): newBuffer() * html.h (SCM_DATA): added * indep.c (url_unquote): deleted (Str_url_unquote): renamed from Str_form_unquote + is decoded is_form only * indep.h (url_unquote): deleted (Str_url_unquote): added (Str_form_unquote): define by Str_url_unquote * main.c (followA): file_unquote (cmd_loadURL): file_unquote * url.c (DefaultPort): add for data: (schemetable): add "data" (DefaultFile): SCM_FTPDIR (parseURL): scheme copied from current (parseURL2): SCM_DATA check SCM_FTP, SCM_FTPDIR (_parsedURL2Str): add data in scheme_str handle SCM_DATA SCM_FTPDIR (openURL): file_unquote handle SCM_DATA From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-07[w3m-dev 03611] relative URLFumitoshi UKAI1-33/+32
* news.c (openNewsStream): don't skip '/' for nntp: (readNewsgroup): cleanup * url.c (parseURL): don't copy user & password (parseURL2): fix for group, don't copy user & password From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-06fix build warningsFumitoshi UKAI1-2/+2
* url.c (parseURL2): fix comparison between pointer and integer * news.c (readNewsgroup): variable `scheme',`group',`list' might be clobbered by `longjmp' or `vfork' From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-01-06[w3m-dev 03610] Re: news:<newsgroup>Fumitoshi UKAI1-17/+27
* anchor.c (_put_anchor_news): check '<' (reAnchorNewsheader): added * file.c (loadSomething): Subject: as buffername (checkHeader): check buf->document_header (loadGeneralFile): reAnchorNewsheader * html.h (SCM_NNTP_GROUP): added * main.c (main): delete USE_NNTP in switch (newbuf->real_scheme) (chkNMIDBuffer): lowercase in url_like_pat * news.c (add_news_message): add scheme, group as arg (openNewsStream): check SCM_NNTP_GROUP check current_news.host (readNewsgroup): rewrite to support nntp:,news: extension * proto.h (reAnchorNewsheader): added * url.c (DefaultPort): add 119 for nntp group (parseURL2): rewrite to support nntp:,news: extension (_parsedURL2Str): add for SCM_NNTP_GROUP (openURL): rewrite to support nntp:,news: extension From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-27gcc -Wall -Werror cleanFumitoshi UKAI1-6/+1
* file.c (loadHTMLstream): unused variable `p' * news.c (news_command): unused variable `c' (news_open): unused variable `tmp' (readNewsgroup): volatile page, qgroup, flag, start, end uninitialized variable `page' * url.c (openURL): unused variable `fw', `r', `stream' From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-12-27[w3m-dev 03608] news:<newsgroup>Fumitoshi UKAI1-79/+20
* XMakefile (LSRCS): add news.c (LOBJS): add news.o * file.c (loadSOmething): don't UFclose() for nntp/news (readHeader): remove . at beginning of line for news img link to file: (loadGeneralFile): add SCM_NEWS_GROUP don't UFclose() for nntp/news (loadHTMLstream): . line check for news (loadBuffer): . line check for news * fm.h (NNTP_server): added (NNTP_mode): added (MaxNewsMessage): added * html.h (SCM_NEWS_GROUP): added * main.c (main): NNTP_server or NNTPSERVER NNTP_mode or NNTPMODE add SCM_NEWS_GROUP (followA): remove news:..@.. check (cmd_loadURL): remove news:...@.. check (w3m_exit): disconnectNews * proto.h (openNewsStream): added (readNewsgroup): added (disconnectNews): added * rc.c (CMT_NNTP_SERVER): added (CMT_NNTP_MODE): added (CMT_MAX_NEWS): added (params9): add nntpserver, nntpmode, max_news * url.c (DefaultPort): add 119 for news group (parseURL2): news:..@... is SCM_NEWS_GROUP (_parsedURL2Str): add news for SCM_NEWS_GROUP (openURL): cleanup SCM_NEWS add SCM_NEWS_GROUP * news.c: added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-14[w3m-dev 03573] Re: Bug#172851: w3m: In form, takes hostname as baseref for ↵Fumitoshi UKAI1-1/+9
relative URI action * url.c (parseURL): if empty is URL, base URL is used From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-12-14[w3m-dev 03568] Re: preserve timestampFumitoshi UKAI1-4/+5
* etc.c (USE_COOKIE): moved * file.c (utime.h): include (setModtime): added (loadGeneralFile): set f.modtime (_doFileCopy): setModtime() (doFileSave): setModtime() * ftp.c (getFtpModtime): added (openFTP): pass URLFile, set modtime * html.h (URLFile): add modtime * proto.h (openFTP): arg URLFile *uf (mymktime): always * url.c (init_stream): initialize modtime (openFTPStream): pass URLFile (openURL): openFTPStream From: Takahashi Youichirou <nikuq@hk.airnet.ne.jp>
2002-11-18[w3m-dev 03448] Some fixesFumitoshi UKAI1-1/+2
* url.c (KeyAbort): SIGNAL_RETURN * .cvsginore: delete w3mimgsize * scripts/.cvsignore: delete xface2xbm * scripts/xface2xbm.in: deleted From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-15[w3m-dev 03431] save file by background processFumitoshi UKAI1-1/+2
* file.c (loadGeneralFile): use _doFileCopy() (_doFileCopy): renamed from doFileCopy() lock fork & save (doFileSave): lock fork & save * fm.h (DownloadList): added (FirstDL): added (LastDL): added * form.c (struct internal_action): add download * funcname.tab (DOWNLOAD_LIST): added * html.h (URLFile): add url * main.c (dump_extra): add add_download_list (main): add_download_list, ldDL() (_quitfm): added (quitfm): rewrite with _quitfm() (qquitfm): ditto (w3m_exit): stopDownload() (addDownloadList): added (checkDownloadList): added (convert_size3): added (DownloadListBuffer): added (download_action): added (stopDownload): added (ldDL): added * proto.h (ldDL): added (convert_size): added (convert_size2): added (doFileCopy): deleted (_doFileCopy): added (addDownloadList): added (stopDownload): added (checkDownloadList): added (download_action): added * url.c (openURL): save url in uf From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-14[w3m-dev 03429] https proxyFumitoshi UKAI1-10/+19
* fm.h (HTTPS_proxy): added (HTTPS_proxy_parsed): added * main.c (main): check https_proxy * rc.c (CMT_HTTPS_PROXY): added (https_proxy): added (parse_proxy): HTTPS_proxy * url.c (openURL): for HTTPS, use HTTPS_proxy (schemeToProxy): HTTPS_proxy_parsed From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-06[w3m-dev 03382] Interrupt in no_proxy_check()Fumitoshi UKAI1-7/+25
* url.c (check_no_proxy): SIGINT trap by KeyAbort From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>