Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Abu Yahya Newsgroups: comp.lang.java.programmer,comp.lang.java.help,comp.client-server Subject: Re: Testing the Post request Date: Sun, 19 Jun 2011 23:10:44 +0530 Organization: Aioe.org NNTP Server Lines: 49 Message-ID: References: <3ea90246-d6b2-4ce2-9a20-d3273d35530a@c9g2000yqp.googlegroups.com> <5763b1d0-0bc1-442e-a39a-843e26698855@j23g2000yqc.googlegroups.com> NNTP-Posting-Host: xw0gdvagdaUG71as1YSAhw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5391 comp.lang.java.help:789 comp.client-server:10 On 6/19/2011 4:03 AM, Pete wrote: > On Jun 18, 9:36 pm, Stanimir Stamenkov 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.