wish for send data to port

Need new test, action, option? Post request here.
Post Reply
tongyan
Posts: 6
Joined: Mon Apr 04, 2005 11:31 pm

wish for send data to port

Post by tongyan »

when i send data to http port, if the %status% is like "no answer" -- a blank in it, it'll not work, so i wish to add a encode function in this test
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

so i wish to add a encode function in this test
This test? Probably you are talking about "Send data to TCP/UDP port" action?
Are you using this action to send test results to some CGI script? Probably its better to use %StatusID% variable instead of %Status%?
%StatusID% - a 2 digits number that represents status of the test
00- Not Tested
01- Host is Alive
02- No Answer
03- Unknown
04- Not Resolved
05- Checking
06- Resolving
07- Ok
08- Bad
09- Disabled
10- Bad Contents
11- WaitForMaster
12- OutOfSchedule

Regards
Alex
tongyan
Posts: 6
Joined: Mon Apr 04, 2005 11:31 pm

but

Post by tongyan »

but how to send date/time to http port?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think we can add some "Apply URL encoding rules to init/final packets" option in next version of HostMonitor

Regards
Alex
Niklas
Posts: 4
Joined: Fri Dec 30, 2005 11:31 am

Post by Niklas »

Hello Sir

I use "Send data to TCP/UDP port" for making it possible to send a SMS to my mobile.

It's a PHP script that follow the rules of html. So no spaces.
For example, I can't use the %LastTestTime% because it contains spaces.

does a "Apply URL encoding rules to init/final packets" exist in newer versions of Hostmon or is their a different sollution now days?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, this option is not implemented due to possible compatibility problem - with this option HostMonitor could translate symbols that should not be translated. Probably we will need to use different symbol (not %) for variables in this action...

Regards
Alex
Niklas
Posts: 4
Joined: Fri Dec 30, 2005 11:31 am

Post by Niklas »

I see

So Hostman can't translate empty spaces to "%20" or "+"?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No. Not yet.

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We have implemented new test method "HTTP request" in version 5.86
www.ks-soft.net/hostmon.eng/news.htm#v586

Regards
Alex
Post Reply