Groups | Search | Server Info | Login | Register


Groups > comp.client-server > #10

Re: Testing the Post request

From Abu Yahya <abu_yahya@invalid.com>
Newsgroups comp.lang.java.programmer, comp.lang.java.help, comp.client-server
Subject Re: Testing the Post request
Date 2011-06-19 23:10 +0530
Organization Aioe.org NNTP Server
Message-ID <itlcaq$p5n$1@speranza.aioe.org> (permalink)
References (2 earlier) <3ea90246-d6b2-4ce2-9a20-d3273d35530a@c9g2000yqp.googlegroups.com> <itijvv$v3o$1@dont-email.me> <5763b1d0-0bc1-442e-a39a-843e26698855@j23g2000yqc.googlegroups.com> <itj295$u3n$1@dont-email.me> <a27d39b6-fcc2-4897-a90d-f8a84bd91b35@k24g2000yqb.googlegroups.com>

Cross-posted to 3 groups.

Show all headers | View raw


On 6/19/2011 4:03 AM, Pete wrote:
> On Jun 18, 9:36 pm, Stanimir Stamenkov<s7a...@netscape.net>  wrote:
>> Sat, 18 Jun 2011 10:40:00 -0700 (PDT), /Pete/:
>>
>>> I have experience in Java programming but not in J2EE, so working with
>>> HTTP and servlets etc is new to me but at the same time interesting.
>>> So in answer to your question :-
>>> [...]
>>> Do I need help with: steps 1 to 5?
>>> In short yes. Basically I would complete this by the end of the
>>> weekend.
>>
>> Given your time restriction, you may better take the approach
>> suggested by markspace in another reply - write a simple socket
>> server, reading the HTTP request, verifying what you need.  I guess
>> you'll also need to send out a manually crafted HTTP response back
>> from you socket service.
>>
>> You may read the Java Tutorial trail on sockets, if you need further
>> help with that:
>>
>> http://download.oracle.com/javase/tutorial/networking/sockets/
>>
>> --
>> Stanimir
>
> Stanimir, markspace
>
> Thank you for your help.
> It is clear I have a learning curve to overcome on this subject. I
> started to follow the link provided by Stanimar and look towards a
> test harness as suggested by markspace. I felt I had very tight time
> constraint and would not finish in time and did further google
> searches.
>
> I came across this site
> http://www.henrycipolla.com/blog/2010/10/let-me-dump-your-post-free-http-post-test-server/
> Just what i wanted. Ran my program and the site verifed my
> implementation - relief.
>
> However, the link is interesting reading which I will pursue. As
> markspace mentioned, this experice is good and to build on.
>

While you learn, it's also a good idea to get used with tools for packet 
analysis such as Wireshark and Fiddler. Wireshark allows you to capture 
and analyze a wide range of network data, while Fiddler can help you 
easily handcraft your own HTTP requests.

Back to comp.client-server | Previous | NextPrevious in thread | Next 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