I am trying to post data to the SD (4.5 SP8) HTTP Port (30980 by default). I have found a Perl script in this forum which does just that and works quite fine. However, we have to integrate with a webservice, so I can not use Perl or any other command line application. The problem we are running into is that SD does not seem to accept the connection (reset by peer) and no data is actually written into the db. Does anyone have furhter information about posting to SD?
Hi That have the next systax: String str = "POST evpost HTTP/1.0\nContent-length:"+valueList.length()+"\n\n"+valueList; where valueList = argv + +"username=user"+ +"\npassword=xxxxxx"+ +"\nmapping=NAMEofMAP" +"\nmodus=insert" +"\nclassname=NAMEofCLASS";
where argv depends from your MAPPING, if in mapping define ConfigurationItem as CI and Description as DSC, so argv = "CI=NORECORD\n"+ "DSC=TEST\n";
Thank you for this response. I have been able to post by using a perl script which I found in this forum. Is there any way to make sd log the actual post - I want to see what is actually transmitted to the hpsd server. Thanks again.
We have now used a java based solution which seems to work. However, carriage returns are somehow treated strange: A carriage return is sent to SD as \n but as soon as there is a \n in the text, the whole post is ignored.