sam,

the ngrep output looks good.  the strings 'mac=xxx&id=90&rid=xxx' is 
exactly what the interceptor is looking for from a lw30x.

i think that the 'Error response' output you're getting is from nc.  it 
looks like nc is sending the raw ngrep output, including the T x.x.x.x:p -> 
y.y.y.y:z [AP].  so the interceptor chokes on that and replies with error 
code 400.

so first you'll want to eliminate the "T ... -> ... [AP]" strings from the 
ngrep output (is there an option to ngrep to do this?)  (it might be 
possible with tcpdump too, but in that case you would be trying to get from 
binary data back to the ascii name-value cgi pairs)

then you'll want to use curl instead of ncat to send the data on.  that 
will look something like this:

ngrep ... | curl -s -d @- http://localhost:9999 > /dev/null

sorry this is not yet all documented in the interceptor readme!

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to