BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Verify HTTP Basic Authentication

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP
View previous topic :: View next topic  
Author Message
Bryan Thorell
Guest





PostPosted: Wed Mar 28, 2007 11:59 pm    Post subject: Verify HTTP Basic Authentication Reply with quote



Does anyone know of a way that I can view the entire web services
communication? I am having real trouble connecting to a web service
that uses Basic HTTP Authentication and have found the code that can
be added to the HTTPRIO1HTTPWebNode1BeforePost(), but that doesn't
seem to help.

I get the message that:

A semi colon character was expected.

Line: 1
<HTML><HEAD><TITLE></TITLE></HEAD><BODY

The people with the web service are saying that I am not getting the
Basic HTTP authorization right so it's returning me some HTML.

Any Ideas?
Back to top
Jean-Marie Babet
Guest





PostPosted: Thu Mar 29, 2007 6:12 am    Post subject: Re: Verify HTTP Basic Authentication Reply with quote



Hello Bryan,

I've use proxyTrace before. See - http://www.pocketsoap.com/tcptrace/pt.aspx

It should allow you to view the HTTP exchanges (assuming you're not already
using a proxy).

Keep in mind that using InternetSetOption relies on a minimum version of
WinInet. If it's basic authentication, you can also put the HTTP header in
yourself. See:

http://groups.google.com/group/borland.public.delphi.webservices.soap/msg/c2b2648d26654dae?

Cheers,

Bruneau.
Back to top
Bryan Thorell
Guest





PostPosted: Thu Mar 29, 2007 8:59 pm    Post subject: Re: Verify HTTP Basic Authentication Reply with quote



Just wanted to say "Thank You!", I was able to add the Basic
Authorization with the HttpAddRequestHeaders() call and it
works like a champ now.

-- Bryan

On Wed, 28 Mar 2007 17:12:40 -0800, "Jean-Marie Babet"
<bbabet (AT) borland (DOT) com> wrote:

Quote:
Hello Bryan,

I've use proxyTrace before. See - http://www.pocketsoap.com/tcptrace/pt.aspx

It should allow you to view the HTTP exchanges (assuming you're not already
using a proxy).

Keep in mind that using InternetSetOption relies on a minimum version of
WinInet. If it's basic authentication, you can also put the HTTP header in
yourself. See:

http://groups.google.com/group/borland.public.delphi.webservices.soap/msg/c2b2648d26654dae?

Cheers,

Bruneau.
Back to top
Jean-Marie Babet
Guest





PostPosted: Thu Mar 29, 2007 10:00 pm    Post subject: Re: Verify HTTP Basic Authentication Reply with quote

Thanks for the follow-up post.

I'll drop the code that puts the 'Authorization' header directly somewhere
in a comment for others.

Cheers,

Bruneau.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.