Dear Padhu, thanks for info. but i am still not clear how to add the filed name and value in that POST method. i have created and URL and set its method as post. now i want to add two fields like name, add with values as 'avp' , 'India' respectively. how can i do it ?
please help with regards, Avinash -----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:SERVLET-INTEREST@;JAVA.SUN.COM]On Behalf Of Padhu Vinirs Sent: Tuesday, October 22, 2002 8:00 PM To: [EMAIL PROTECTED] Subject: Re: regarding POSt method implementation Create a HttpURLConnection object. Then call the setRequestMethid("POST"); -- padhu Avinash Pedgaonker , SA, NIC wrote: >Dear Friends, >i am calling an .asp file from a java applet programme using AppletContext >and showDcoument >like >ac.showDocument(new URL(url + "test.asp?param1=abc")); >here url is getCodeBase() >my problem is that I want to use the 'post' method with this asp and not get >ie. no query string. >how can I achieve this? >I mean what exactly the browser does when we say in form method = "POST" . >how it send the field name and value to server? > >thanks in advance. > >with regrads, >Avinash > >___________________________________________________________________________ >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff SERVLET-INTEREST". > >Archives: http://archives.java.sun.com/archives/servlet-interest.html >Resources: http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html