Re: Igor, pAPP toolkit questions
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 11/23/04
- Next message: Igor Tandetnik: "Re: Content-type bug in IE since SP2"
- Previous message: SouthSpawn: "Navigate Method"
- In reply to: Josh Mclaren: "Igor, pAPP toolkit questions"
- Next in thread: Josh Mclaren: "Re: Igor, pAPP toolkit questions"
- Reply: Josh Mclaren: "Re: Igor, pAPP toolkit questions"
- Reply: Josh Mclaren: "Re: Igor, pAPP toolkit questions"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Nov 2004 11:29:59 -0500
"Josh Mclaren" <optics201@optonline.com> wrote in message
news:72494446.0411221935.4f759181@posting.google.com
> I am having trouble implementing what you suggested in the following
> post, with the pAPP toolkit. :
>
> http://groups.google.com/groups?hl=en&lr=&safe=off&selm=OsmO3iP5DHA.1664%40TK2MSFTNGP11.phx.gbl
>
> When I simply take the pAPP toolkit and replace the
> HTTP_QUERY_RAW_HEADERS_CRLF | HTTP_QUERY_FLAG_REQUEST_HEADERS
> QueryInfo call
>
> with
>
> HTTP_QUERY_AUTHORIZATION | HTTP_QUERY_FLAG_REQUEST_HEADERS
>
> the buffer is always an invalid pointer.
I'm not sure what that means. You pass the buffer to the method, right?
So make sure it is valid. Am I missing something obvious?
Also, make sure you don't call too early. You definitely need to do it
after IAuthenticate::Authenticate returns. Probably the best place is in
BINDSTATUS_SENDINGREQUEST notification - by this time, all the request
headers have been fully prepared.
> I've also played around with
> GetBindInfo off of the m_spInternetBindInfo object. I've been able to
> use that succesfully to retreive post Data (though I'm not sure that
> is the best way)
It is the best and only way. The POST data is supplied in BINDINFO
structure.
> and I thought I might be able to use it similarly to
> retrieve BINDSTRING_USERNAME as some MSDN code retrieves MIME types.
I found GetBindString to be very inconsistent. It works for some strings
but not others, with no apparent reason. Usually there are alternative
ways to get the same information, so I haven't spent much time on it.
> Another question I had is to ask is what is the best way to examine
> the html content that is received with the current toolkit.
IInternetProtocol::Read is the only place you can see it.
> Ideally
> I'd like the entire message rather than dealing with QueryInfo's
> splitting of the headers etc.
Now I'm confused. Are you asking about response body (presumably HTML
content), or response headers?
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
- Next message: Igor Tandetnik: "Re: Content-type bug in IE since SP2"
- Previous message: SouthSpawn: "Navigate Method"
- In reply to: Josh Mclaren: "Igor, pAPP toolkit questions"
- Next in thread: Josh Mclaren: "Re: Igor, pAPP toolkit questions"
- Reply: Josh Mclaren: "Re: Igor, pAPP toolkit questions"
- Reply: Josh Mclaren: "Re: Igor, pAPP toolkit questions"
- Messages sorted by: [ date ] [ thread ]