Bug 14848

Summary: can't download stuff from java.sun.com via http
Product: [Applications] konqueror Reporter: Alexander Neundorf <neundorf>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: CLOSED FIXED    
Severity: normal CC: esigra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexander Neundorf 2000-11-07 15:29:04 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: khtml
Version: kde 2.0
Severity: normal

Hi I can't download stuff from http://java.sun.com.
well:
1. http://java.sun.com/j2se/1.3/download-linux.html
2. select rpm-version and click "Download"
3. click "accept" at the bottom to the license
4. now a page appears  with a lot of buttons
 if I click on the button "HTTP download" I get the html page downloaded not 
the actual package

Alex
Comment 1 David Faure 2000-11-07 17:37:06 UTC
On Tuesday 07 November 2000 15:29 aleXXX wrote:
> Package: khtml
> Version: kde 2.0
> Severity: normal
>=20
> Hi I can't download stuff from http://java.sun.com.
> well:
> 1. http://java.sun.com/j2se/1.3/download-linux.html
> 2. select rpm-version and click "Download"
> 3. click "accept" at the bottom to the license
> 4. now a page appears  with a lot of buttons
>  if I click on the button "HTTP download" I get the html page downloaded=
 not=20
> the actual package

Apparently this is because the receiving page doesn't get the value
of the input fields correctly (so it's an HTML form posting problem).

<FORM ACTION=3D/Download4 METHOD=3DPOST>
<TR><TD BGCOLOR=3D"#EEEEFF" COLSPAN=3D3 ALIGN=3DLEFT>
<table bgcolor=3D#eeeeff width=3D100%>
<TR><TD bgcolor=3D#eeeeff valign=3Dtop width=3D5%>
<img src=3D"/products/javahelp/images/red.triangle.gif">
<td bgcolor=3D#eeeeff align=3Dleft width=3D95%>
<INPUT TYPE=3DSUBMIT NAME=3Dprotocol VALUE=3D"HTTP download">

<INPUT TYPE=3DHIDDEN NAME=3Dreferer VALUE=3Dhttp://java.sun.com/j2se/1.3/do=
wnload-linux.html>
<INPUT TYPE=3DHIDDEN NAME=3Ddownload-name VALUE=3Dj2sdk-1_3_0-linux-rpm.sh>
<INPUT TYPE=3DHIDDEN NAME=3Dconfig-file VALUE=3Dj2sdk-1_3_0-linux-rpm.confi=
g>
<INPUT TYPE=3DHIDDEN NAME=3Dplatform VALUE=3Drpm>
<INPUT TYPE=3DHIDDEN NAME=3Ddomain-checked VALUE=3D>
</FORM>

I wonder if the last field with its empty value is the problem.
I tried hacking up an html page with only the above and the full URL in FOR=
M ACTION
but this doesn't seem to send it to the web site.... I guess it's not possi=
ble to do that ? :)

--=20
David FAURE david@mandrakesoft.com faure@kde.org
http://www.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2
Comment 2 Dirk Mueller 2000-11-07 18:43:41 UTC
On Die 07 Nov 2000 David Faure wrote:

> I wonder if the last field with its empty value is the problem.
> I tried hacking up an html page with only the above and the full URL in FORM ACTION
> but this doesn't seem to send it to the web site.... I guess it's not possible to do that ? :)

Are you sure its a submitting problem?
I tested your testpage.

khtml posts: 

POST / HTTP/1.1
Connection: Keep-Alive
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0); Supports
MD5-Digest; Supports gzip encoding
Referer: file:/home/damware/java.html
Pragma: no-cache
Cache-control: no-cache
Accept-Encoding: x-gzip; q=1.0 x-deflate gzip; q=1.0 deflate identity
Accept-Charset: iso-8859-1;q=1.0 utf-8;q=0.8 *;q=0.9
Accept-Language: en_US en_US en
Host: localhost:4712
Content-Type: application/x-www-form-urlencoded
Content-Length: 200

protocol=HTTP+download&referer=http%3A%2F%2Fjava.sun.com%2Fj2se%2F1.3%2Fdownload-linux.html&download-name=j2sdk-1_3_0-linux-rpm.sh&config-file=j2sdk-1_3_0-linux-rpm.config&platform=rpm&domain-checked=


and netscape 4.7x posts: 

POST / HTTP/1.0
User-Agent: Mozilla/3.01Gold (Macintosh; I; 68K)
Host: localhost:4712
Accept: image/gif image/x-xbitmap image/jpeg image/pjpeg image/png */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1*utf-8
Content-type: application/x-www-form-urlencoded
Content-length: 200

protocol=HTTP+download&referer=http%3A%2F%2Fjava.sun.com%2Fj2se%2F1.3%2Fdownload-linux.html&download-name=j2sdk-1_3_0-linux-rpm.sh&config-file=j2sdk-1_3_0-linux-rpm.config&platform=rpm&domain-checked=

I can't see a difference. 


Dirk
Comment 3 David Faure 2001-01-20 11:52:38 UTC
Works fine with current CVS.

--=20
David FAURE david@mandrakesoft.com faure@kde.org
http://www.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today