Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Feb : newbie- adding file content without content type/headers
| Subject: | newbie- adding file content without content type/headers |
| Posted by: | "jas" (ridgecrest..@hotmail.com) |
| Date: | Mon, 6 Feb 2006 13:06:47 |
greetings,
i need to be able to do an https post and add a file content, but skip
adding the content-type and header. this is for a local gov't. application
and they are using IP*WORKS http/s component and it by default does not add
these two items. so their post looks like:
POST /il/gateway HTTP/1.0
Host: biz.revenue.state.il.us
Authorization: Basic MQBxWrS7hmQ3V4ly (Base64 encoded)
Accept: text/plain, text/html, text/xml
User-Agent: (optional header)
X-Transmit-ID: doc1
Content-Type: text/plain
Content-Length: 97
*******************************
The transmitted file goes here.
*******************************
i can do this:
Cache-Control : no-cache
Content-Length : 4599
Content-Type : text/plain
Accept : text/plain,text/html,text/xml
Cookie : ASP.NET_SessionId=gpmtpr55gjhtdeegi1gspbuy
Host : biz.revenue.state.il.us
User-Agent : tiehttp
X-Transmit-ID : testA
-------------------------------7cf87224d2020a
Content-Disposition: form-data; name="ILData"
0120****TRANA xxxxxx ...
0000 #
-------------------------------7cf87224d2020a--
but it is not acceptable. can i or how do i include the data without the
headers & content-disp..
tia
jim