I'm using the largepost.c example from the tutorial and sending a POST
from a java client written to communicate with a RESTful WebServices
server. The client was written with RESTEasy and works with a JBoss
server. For compatibility reasons it's important that I be able to use
the same client although I can make changes in it.
My plan is to use libmicrohttpd to build a fairly simple WS server. I'm
running on Windows 7 and Visual Studio 2010 (Not my choice).
In the "answer_to_connection" routine I'm getting a null return from
MHD_create_post_processor. The following is from a tcpdump trace of the
input.
Question - As you can see the data is XML but the client is
using Content-Type: text/plain. I will do any XML parsing needed and
would like the XML to be processed as text and not interpreted.
POST /SBMLServerREST-war/SBML/bml;submitterID=dsc;domain=ibml HTTP/1.1
Accept-Encoding: gzip, deflate
Accept: text/plain
User-Agent: Jakarta Commons-HttpClient/3.1
Host: wise:8080
Content-Length: 269
Content-Type: text/plain
<?xml version="1.0" encoding="UTF-8"?>
<newwho:ListWho
xmlns:bml="http://netlab.gmu.edu/IBML"
xmlns:newwho="http://netlab.gmu.edu/JBML/BML"
xmlns:jc3iedm="urn:int:nato:standard:mip:jc3iedm:3.1a:oo:2.0">
<newwho:UnitID>abc5</newwho:UnitID>
</newwho:ListWho>
Doug Corner
=========================================
Douglas Corner
4439 Nguyen Engineering Building
George Mason Universiy
4400 University Drive
Fairfax, VA 22030
Email:address@hidden <mailto:address@hidden>
Cell:(571) 215-0773
Skype:douglascorner