AddRequestHeaders question

Giganews Newsgroups
Subject: AddRequestHeaders question
Posted by:  Dave Farquharson (gamerfarquhars…@hotmail.com)
Date: Mon, 29 Sep 2008

Hello,

I am pretty new to the HttpFile class and its use. I am using
CHttpFile::AddRequestHeaders(), one of which has to be a SOAPAction. The problem I have is
that the action must be null. Adding the "Content-Type" and "Content-Length" headers
succeeds but doing a

pHttpFile->AddRequestHeaders("SOAPAction:\r
");

fails with a ERROR_HTTP_HEADER_NOT_FOUND error.

Any ideas to help? I'm confused and trusty Google hasn't helped me out yet. I've tried a
few combos of ADDREQ flags and played with the text (like adding a space before CR/LF,
etc).

-Dave

Replies