🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #330

Re: C++ Builder 2007 & Indy10 + Digest auth...

#330
From: Jyrki Saario
Date: Tue, 15 Apr 2008 18:05
40 lines
2700 bytes
Remy Lebeau (TeamB) wrote:
> When you retreive the same page using a web browser, what does the 
> authorization data look like?  How does it differ from what Indy sends?

Hope this helps to find out:

Browser (this succeed) :
GET /rmt/index.shtml HTTP/1.1
Host: 192.168.0.13
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) 
Gecko/20080311 Firefox/2.0.0.13
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en,sv;q=0.8,fi;q=0.5,en-us;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://192.168.0.13/
Authorization: Digest username="user", realm="Web Configuration", 
nonce="MDAwMDAwMDEyMDo1MTc6MTkyLjE2OC4yMzEuMTAz", 
uri="/rmt/index.shtml", algorithm=MD5, 
response="0f40310b510b996b374d36c431acc984", qop=auth, nc=00000001, 
cnonce="d4982618229ed456"

My program (this failed):
GET /rmt/index.shtml HTTP/1.1
Host: 192.168.0.13
Accept: text/html, */*
Accept-Encoding: identity
User-Agent: Mozilla/3.0 (compatible; Indy Library)
Authorization: Digest username="user", realm="Web Configuration", 
nonce="MDAwMDAwMDEyMToyOTE6MTkyLjE2OC4yMzEuMTAz", algorithm="MD5", 
uri="", qop="auth", nc=00000001, 
cnonce="c4fce4dfd34665f8b1a9d3ba840384f4", 
response="8877c6af46a883b6d05cb15792ad442f"

Any ideas?

J.S
Technical Details
Message-ID: <4804eef3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <48035008@newsgroups.borland.com> <480388e6$1@newsgroups.borland.com> <480396b8$1@newsgroups.borland.com> <4803a6db@newsgroups.borland.com> <4803ac9f$1@newsgroups.borland.com> <4803b372@newsgroups.borland.com> <4803c9ba$1@newsgroups.borland.com> <4803dd91$1@newsgroups.borland.com> <48047653@newsgroups.borland.com> <4804db8f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d2c1cbe3fa01c
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 15 Apr 2008 21:05:21 +0300
From: Jyrki Saario <user@domain.invalid>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: C++ Builder 2007 & Indy10 + Digest auth...
References: <48035008@newsgroups.borland.com> <480388e6$1@newsgroups.borland.com> <480396b8$1@newsgroups.borland.com> <4803a6db@newsgroups.borland.com> <4803ac9f$1@newsgroups.borland.com> <4803b372@newsgroups.borland.com> <4803c9ba$1@newsgroups.borland.com> <4803dd91$1@newsgroups.borland.com> <48047653@newsgroups.borland.com> <4804db8f$1@newsgroups.borland.com>
In-Reply-To: <4804db8f$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.214.188.170
Message-ID: <4804eef3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208282867 212.214.188.170 (15 Apr 2008 11:07:47 -0700)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail