[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Help regarding KIO [GSoC 2012]
From:       Aish Raj Dahal <dahalaishraj () gmail ! com>
Date:       2012-05-26 1:09:14
Message-ID: CAGgRARNGf4DtuXfSFXVFB=rabAFxxHEWOHaueQrz3zRM3Gstdw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Respected members of the KDE community,

First of all let me introduce myself. I am a Google Summer of Code 2012
student implementing Metalink/HTTP [RFC 6249] support in Kget. In most
basic terms my implementation involves receiving of the custom HTTP
response header fields sent by the server supporting Metalink/HTTP. I have
been trying to use KIO and extract the information from the custom HTTP
response headers sent back by the server, however it has been in vain.

I am using
http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gzto
 check the Metalink/HTTP. It works fine while running

curl -sI
http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz


However, while doing so using KIO, I've encountered problems. It seems that
the header replies that KIO gets are of the download link, just as
Konqueror gets it while typing the link in the address bar. :-/

The output that I get is
"HTTP/1.1 200 OK

server: nginx/0.8.54

date: Fri, 25 May 2012 14:32:56 GMT

content-type: application/octet-stream

content-length: 8957266
last-modified: Mon, 17 Jan 2011 22:03:15 GMT
connection: close
accept-ranges: bytes"

And the output that I should be actually getting is:

HTTP/1.1 302 Found
Date: Fri, 25 May 2012 13:13:14 GMT
Server: Apache/2.2.22 (Linux/SUSE)
X-Prefix: 49.244.64.0/21
X-AS: 23752
X-MirrorBrain-Mirror: mirror.averse.net
X-MirrorBrain-Realm: region
Link: <
http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz.meta4>;
 rel=describedby; type="application/metalink4+xml"
Link: <
http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz.torrent>;
 rel=describedby; type="application/x-bittorrent"
Link: <
http://mirror.averse.net/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz>;
 rel=duplicate; pri=1; geo=sg
Link: <
http://ftp.isu.edu.tw/pub/OpenOffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz>;
 rel=duplicate; pri=2; geo=tw
Link: <
http://ftp.twaren.net/OpenOffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz>;
 rel=duplicate; pri=3; geo=tw
Link: <
http://ftp.kaist.ac.kr/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz>;
 rel=duplicate; pri=4; geo=kr
Link: <
http://mirror.yongbok.net/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz>;
 rel=duplicate; pri=5; geo=kr
Digest: MD5=chZROzRjy791zYb5mUhk3A==
Digest: SHA=nRgEtguiGxDlu8PKSxyBSc7TlGw=
Digest: SHA-256=VO2S9pgCq1lqgTFTKssVj6amn0npNdagtjI8ziDtiRQ=
Location:
http://mirror.averse.net/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz
                
Connection: close
Content-Type: text/html; charset=iso-8859-1

My "practice" repository is at
https://gitorious.org/google-summer-of-code-metalnik-html/mero-code-haru.

I hope you'll go through the code and help me with figuring out how to get
the desired result. :)

Thanks a lot.

-- 
Aishraj Dahal
Semester VII Undergraduate
Computer Science and Engineering
National Institute of Technology Warangal
India


[Attachment #5 (text/html)]

Respected members of the KDE community,<br><br>First of all let me introduce myself. \
I am a Google Summer of Code 2012 student implementing Metalink/HTTP [RFC 6249] \
support in Kget. In most basic terms my implementation involves receiving of the \
custom HTTP response header fields sent by the server supporting Metalink/HTTP. I \
have been trying to use KIO and extract the information from the custom HTTP response \
headers sent back by the server, however it has been in vain. <br>

<br>
<div>I am using <a href="http://download.services.openoffice.org/files/stable/3.3.0/OO \
o-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz">http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz</a> \
to check the Metalink/HTTP. It works fine while running  </div>

<div><br></div><div>curl -sI <a \
href="http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x \
86-64_install-deb_en-US.tar.gz">http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz</a></div>


<div><br></div><div>However, while doing so using KIO, I&#39;ve encountered problems. \
It seems that the header replies that KIO gets are of the download link, just as \
Konqueror gets it while typing the link in the address bar. :-/</div>

<div><br></div><div>The output that I get is </div><div>&quot;HTTP/1.1 200 OK         \
</div><div>server: nginx/0.8.54                                                       \
</div>

<div>date: Fri, 25 May 2012 14:32:56 GMT                                              \
</div><div>content-type: application/octet-stream                                     \
</div><div>content-length: 8957266</div><div>

last-modified: Mon, 17 Jan 2011 22:03:15 GMT</div><div>connection: \
close</div><div>accept-ranges: bytes&quot; </div><div><br></div><div>And the output \
that I should be actually getting is:</div><div><br></div><div>HTTP/1.1 302 \
Found</div>

<div>Date: Fri, 25 May 2012 13:13:14 GMT</div><div>Server: Apache/2.2.22 \
(Linux/SUSE)</div><div>X-Prefix: <a \
href="http://49.244.64.0/21">49.244.64.0/21</a></div><div>X-AS: \
23752</div><div>X-MirrorBrain-Mirror: <a \
href="http://mirror.averse.net">mirror.averse.net</a></div>

<div>X-MirrorBrain-Realm: region</div><div>Link: &lt;<a \
href="http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x \
86-64_install-deb_en-US.tar.gz.meta4">http://download.services.openoffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz.meta4</a>&gt;; \
rel=describedby; type=&quot;application/metalink4+xml&quot;</div>

<div>Link: &lt;<a href="http://download.services.openoffice.org/files/stable/3.3.0/OOo \
-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz.torrent">http://download.services.ope \
noffice.org/files/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz.torrent</a>&gt;; \
rel=describedby; type=&quot;application/x-bittorrent&quot;</div>

<div>Link: &lt;<a href="http://mirror.averse.net/openoffice/stable/3.3.0/OOo-SDK_3.3.0 \
_Linux_x86-64_install-deb_en-US.tar.gz">http://mirror.averse.net/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz</a>&gt;; \
rel=duplicate; pri=1; geo=sg</div>

<div>Link: &lt;<a href="http://ftp.isu.edu.tw/pub/OpenOffice/stable/3.3.0/OOo-SDK_3.3. \
0_Linux_x86-64_install-deb_en-US.tar.gz">http://ftp.isu.edu.tw/pub/OpenOffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz</a>&gt;; \
rel=duplicate; pri=2; geo=tw</div>

<div>Link: &lt;<a href="http://ftp.twaren.net/OpenOffice/stable/3.3.0/OOo-SDK_3.3.0_Li \
nux_x86-64_install-deb_en-US.tar.gz">http://ftp.twaren.net/OpenOffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz</a>&gt;; \
rel=duplicate; pri=3; geo=tw</div>

<div>Link: &lt;<a href="http://ftp.kaist.ac.kr/openoffice/stable/3.3.0/OOo-SDK_3.3.0_L \
inux_x86-64_install-deb_en-US.tar.gz">http://ftp.kaist.ac.kr/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz</a>&gt;; \
rel=duplicate; pri=4; geo=kr</div>

<div>Link: &lt;<a href="http://mirror.yongbok.net/openoffice/stable/3.3.0/OOo-SDK_3.3. \
0_Linux_x86-64_install-deb_en-US.tar.gz">http://mirror.yongbok.net/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz</a>&gt;; \
rel=duplicate; pri=5; geo=kr</div>

<div>Digest: MD5=chZROzRjy791zYb5mUhk3A==</div><div>Digest: \
SHA=nRgEtguiGxDlu8PKSxyBSc7TlGw=</div><div>Digest: \
SHA-256=VO2S9pgCq1lqgTFTKssVj6amn0npNdagtjI8ziDtiRQ=</div><div>Location: <a \
href="http://mirror.averse.net/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_inst \
all-deb_en-US.tar.gz">http://mirror.averse.net/openoffice/stable/3.3.0/OOo-SDK_3.3.0_Linux_x86-64_install-deb_en-US.tar.gz</a></div>


<div>Connection: close</div><div>Content-Type: text/html; \
charset=iso-8859-1</div><div><br></div><div>My &quot;practice&quot; repository is at \
<a href="https://gitorious.org/google-summer-of-code-metalnik-html/mero-code-haru">https://gitorious.org/google-summer-of-code-metalnik-html/mero-code-haru</a>. \
</div>

<div><br></div><div>I hope you&#39;ll go through the code and help me with figuring \
out how to get the desired result. :)</div><br>Thanks a lot.<br \
clear="all"><div><br></div>-- <br>Aishraj Dahal<br>Semester VII Undergraduate<br>

Computer Science and Engineering<br>National Institute of Technology \
Warangal<br>India<br><br>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic