Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Post to PHP script from Java Applet Date: Wed, 06 Apr 2011 11:37:09 -0700 Organization: Canadian Mind Products Lines: 38 Message-ID: References: <7452d50f-f572-4c3d-83b0-bb75545fcf02@k9g2000yqi.googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2897 On Wed, 6 Apr 2011 08:17:33 -0700 (PDT), Greg wrote, quoted or indirectly quoted someone who said : >I have been tirelessly working on an applet that uploads pictures to >an apache server and subsequently writes them to a database. I have >an html equivalent that uploads them and it works fine. However, when >I try to create a POST from my Java Applet, the PHP doesn't seem to >react. The pictures never get posted to the database. Any help would >be GREATLY appreciated. Thanks to everyone in advance! First you need wireshark. See http://mindprod.com/jgloss/wireshark.html This will let you watch the HTTP messages going back and forth. You can use my POST code. See http://mindprod.com/products1.html#POST That will handle much of the busywork for you and make sure your headers are correct. Do you have some other program that can post to your server? If so, watch what it does with wireshark then make sure your Applet is doing the same thing. Your Applet probably must be signed. See http://mindprod.com/jgloss/signedapplet.html Get it working as an application first,then flip to an Applet. See http://mindprod.com/jgloss/applet.html for how to write a hybrid that will work either way. -- Roedy Green Canadian Mind Products http://mindprod.com Doing what the user expects with respect to navigation is absurdly important for user satisfaction. ~ anonymous Google Android developer