Hi,
  I need to be able to parse a file on a remote server, so I am using the
  URLInputSource for the location of the xml file.
   
  My remote server sees the request but blocks the request out because our 
server requires some special HTTP headers for user authentication.
   
  I can see that I need to use the XMLNetHTTPInfo class to pass this data along,
  but I can't seem to get the data I load into this class across the wire.
   
  What do I need to do to get this to happen?
   
  The code basically looks like this:
   
  
  XMLNetHTTPInfo* http_info = new XMLNetHTTPInfo();
  http_info->fHTTPMethod = XMLNetHTTPInfo::GET;
  http_info->fHeaders = "Header1: Value\r\nHeader2: Value\r\n";
  http_info->fHeadersLen = strlen(http_info->fHeaders);
  XMLCh* burl = XMLString::transcode("http://blah blah blah/blah.xml");
  XMLURL* url = new XMLURL(burl);
  URLInputSource* inputSource = new URLInputSource(*url);
  parser->parse(*inputSource);
   
  The only header that comes across is the HTTP Host.
   
  thanks
   
  p.s. the blah blah blah is a real location in my code.
   

                
---------------------------------
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

Reply via email to