Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #2897
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Post to PHP script from Java Applet |
| Date | 2011-04-06 11:37 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <cfcpp6ll2gubmtbv967t5j87s2tomt8bko@4ax.com> (permalink) |
| References | <7452d50f-f572-4c3d-83b0-bb75545fcf02@k9g2000yqi.googlegroups.com> |
On Wed, 6 Apr 2011 08:17:33 -0700 (PDT), Greg <shireyg@gmail.com> 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
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Post to PHP script from Java Applet Greg <shireyg@gmail.com> - 2011-04-06 08:17 -0700
Re: Post to PHP script from Java Applet Roedy Green <see_website@mindprod.com.invalid> - 2011-04-06 11:37 -0700
Re: Post to PHP script from Java Applet Luuk <Luuk@invalid.lan> - 2011-04-06 20:39 +0200
Re: Post to PHP script from Java Applet Greg <shireyg@gmail.com> - 2011-04-06 14:01 -0700
Re: Post to PHP script from Java Applet Greg <shireyg@gmail.com> - 2011-04-07 00:20 -0700
csiph-web