From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040211 Firefox/0.8 Description of problem: The configuration file /etc/jwhois.conf uses lynx as default browser-pathname, however lynx is no longer included in the distribution. Version-Release number of selected component (if applicable): jwhois-3.2.2-1 How reproducible: Sometimes Steps to Reproduce: 1. jwhois redhat.se 2. 3. Actual Results: [Querying http://www.nic-se.se/cgi-bin/whois/www-to-whois] [HTTP: Unable to run web browser: No such file or directory] Expected Results: Information about the redhat.se domain Additional info: Easily fixed by changing browser-pathname to /usr/bin/elinks in /etc/jwhois.conf. Should be in the RPM though
Unfortunately * elinks doesn't support POST requests at all * curl supports POST, but not in a format supported by jwhois * w3m is not shipped in RHEL
I wrote a libcurl version of http whois fetching for jwhois, it uses the configured browser to format the html. It also supports https and sending multiple http requests to the same host (required for .fi domains ...). RPMS (source and fedora core 1) available from http://rpms.www.sumu.org/jwhois-3.2.2-4os1.src.rpm http://rpms.www.sumu.org/jwhois-3.2.2-4os1.i386.rpm The patch also fixes a segmentation fault when a configuration file is not available.
Created attachment 103741 [details] Backward-compatible internal libcurl support (POST only)
Created attachment 103742 [details] Other features from jwhois-3.2.1-4os1, not included above Oskari, Thanks for your patch. How about these two patches instead? Unlike your original code this should be backward-compatible. (The "extra" patch implements your features which will probably not go in RHEL3; note that they both require setting "post-internal".) I was not able to reproduce the segmentation fault. If this looks fine, we should think about getting this accepted upstream. This will probably require assignment to the FSF (i.e. removing your and Red Hat copyright notices). Is it okay with you?
Your patches look good, and I think we should try to get them accepted upstream. I already contacted the jwhois maintainer, Jonas Ãberg, a few days ago and while he was intrested in applying the patch, he said "Unfortunately, I don't have a lot of time to work on jwhois now, so I don't know when a new version might be forthcoming." Assigning copyrights to FSF is okay with me.
lynx was added in RHEL 3 update releases; on existing systems it can be installed using up2date. Therefore the default jwhois configuration so this should no longer be an issue. The patches for using libcurl should not be needed anymore; I have sent them upstream and if the upstream developer responds, I'll work with him to get them included. Thanks again for your patches.