- From: Horton, Darnell <Darnell.Horton@marriott.com>
- Date: Tue, 12 Feb 2002 18:38:14 -0500
- To: "Www-Lib (E-mail)" <www-lib@w3.org>
Hi, I'm new to libwww. I ran into it when I was looking for something to incorporate into a command line batch job to post some XML data to a server. I used the included sample prog in the latest win32 distribution, and I'm not quite sure how I would post XML data to the server correctly. Here is a sample of what I attempted to send to the server: comline -post http://servername/scripts/wpnbr.dll -form " <?xml version="1.0" encoding="UTF-16" ?> <!DOCTYPE NFuseProtocol> - <NFuseProtocol version="1.2"> - <RequestAppData> <Scope traverse="onelevel" type="PNFolder" /> <DesiredDetails>defaults</DesiredDetails> <ServerType>all</ServerType> <ClientType>ica30</ClientType> - <Credentials> <UserName>testuser</UserName> <Password encoding="ctx1">NFHALEBBMHGCLEBBMDGGKMAJNOHLLKBP</Password> <Domain type="NT">testdomain</Domain> </Credentials> </RequestAppData> </NFuseProtocol>" I captured the raw xml data via a protcol analyzer and I ran the XML through a XML syntax util to fix my incorrect character interpretation when I retyped it. Well, when I sedn the data to the server, it results in the server returning an internal server error. I sent it to the server using the already crafted "comline" prog. It seems obvious that posting XML data like this was not the intended use of the "-form" switch. There was another utility mentioned somewhere in my reading @w3.org named "webcon" that was supposed to be a free form line browser, but it is no place to be found. I'm not sure if something is already done that can do what I need it to or if I need to code something else. Anyway, if someone has managed to do something like this, I would greatly appreciate any help that can be offered on this. I have seen some of the sample code, but I'm worried that XML posts may have to be handled in another manner than the sample code was written. Thanks a lot Darnell
Received on Tuesday, 12 February 2002 18:38:45 UTC