You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Paul Schwartz <ps...@infolio.com> on 2000/11/08 21:16:14 UTC
HTTP header info question
I'm using URLInputSource to get the input XML from my server. Everything
works fine, but I'd like view the HTTP header information. Where do I look
for this information? (I'm using the C++ version of Xerces)
If this isn't the proper forum for this question where would I send such
questions?
Thanks
Paul Schwartz
Re: HTTP header info question
Posted by Dean Roddey <dr...@charmedquark.com>.
That information would not be available to you. If that's waht you want to
do, then you might do better by getting the document yourself via HTTP. Get
the header lines off, then pass the rest to the parser via a memory buffer
input source.
--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
droddey@charmedquark.com
http://www.charmedquark.com
"It takes two buttocks to make friction"
- African Proverb
----- Original Message -----
From: "Paul Schwartz" <ps...@infolio.com>
To: <xe...@xml.apache.org>
Sent: Wednesday, November 08, 2000 12:16 PM
Subject: HTTP header info question
>
>
> I'm using URLInputSource to get the input XML from my server. Everything
> works fine, but I'd like view the HTTP header information. Where do I look
> for this information? (I'm using the C++ version of Xerces)
>
> If this isn't the proper forum for this question where would I send such
> questions?
>
> Thanks
>
> Paul Schwartz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
Re: HTTP header info question
Posted by Andy Heninger <an...@jtcsv.com>.
From: "Paul Schwartz" <ps...@infolio.com>
> I'm using URLInputSource to get the input XML from my server. Everything
> works fine, but I'd like view the HTTP header information. Where do I
look
> for this information? (I'm using the C++ version of Xerces)
Xerces-C does not make the HTTP header information available - it really
doesn't have anything to do with the XML itself. If you really need to
get at it, my only suggestion would be to dig into your copy of the URL
code.
The URL Input Source is not a good implementation. Some while back, Joe
Pruitt suggested looking into the open source library "cURL" as a way to
get a more complete and robust implementation of http (and additional
protocols). See http://curl.haxx.se If you are going to hack into the
URL code anyhow, it might be worth checking out cURL.
Andy Heninger
IBM XML Technology Group, Cupertino, CA
heninger@us.ibm.com