Groups | Search | Server Info | Login | Register


Groups > comp.client-server > #6

Re: Testing the Post request

From markspace <-@.>
Newsgroups comp.lang.java.programmer, comp.lang.java.help, comp.client-server
Subject Re: Testing the Post request
Date 2011-06-18 11:11 -0700
Organization A noiseless patient Spider
Message-ID <itipp4$5tf$1@dont-email.me> (permalink)
References <df9cb1d7-c953-49ed-851b-c309a034a3a9@x3g2000yqj.googlegroups.com> <itidgd$l0h$1@dont-email.me> <3ea90246-d6b2-4ce2-9a20-d3273d35530a@c9g2000yqp.googlegroups.com>

Cross-posted to 3 groups.

Show all headers | View raw


On 6/18/2011 8:54 AM, Pete wrote:

> This is subject matter is relatively new to me - even my logic of my
> function, I got from the internate. So I wonder if you have any
> suggestions how I can create a SIMPLE  "a test service receiving and
> handling the requests" to test my function.


I think what you should do is just open a simple socket, read in the 
packet, and verify line-by-line that the data is as expected.

This is not exactly what you are asking for, but it is the simplest and 
also something I think you should do for the long term.  I.e., as a 
permanent test harness.

The FIRST thing I think you should do is just to implement the above, 
and then print out the packet you receive.  Compare it manually with 
what you expect, and with any examples you can find online of a POST 
packet.  That I think will help you understand the most what you ought 
to receive, and what you are receiving.

Again, no matter what else you plan to do, I can almost guarantee that 
if you are new to this, you'll end up implementing a little packet 
printer no matter what, so you might as well do it now.

Back to comp.client-server | Previous | NextPrevious in thread | Find similar


Thread

Testing the Post request Pete <vw_bora@sky.com> - 2011-06-18 04:41 -0700
  Re: Testing the Post request Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-18 17:42 +0300
    Re: Testing the Post request Pete <vw_bora@sky.com> - 2011-06-18 08:54 -0700
      Re: Testing the Post request Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-18 19:33 +0300
        Re: Testing the Post request Pete <vw_bora@sky.com> - 2011-06-18 10:40 -0700
          Re: Testing the Post request Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-18 23:36 +0300
            Re: Testing the Post request Pete <vw_bora@sky.com> - 2011-06-18 15:33 -0700
              Re: Testing the Post request Abu Yahya <abu_yahya@invalid.com> - 2011-06-19 23:10 +0530
      Re: Testing the Post request markspace <-@.> - 2011-06-18 11:11 -0700

csiph-web