[appengine-java] How to use HTTPURLCONNECTION to post data to a form containing captcha+multiple choice values

2011-08-20 Thread Arvind Chari
Hello,

I have a situation where I want to submit a form using POST to
http://domain.com/submit.php. This form has a couple of text boxes,
and then a captcha field. The captcha text box is named "CAPTCHA" and
the actual captcha image linked to it, is generated by 
http://domain.com/captcha.php.

My question is, how do I treat the captcha? Should I treat is as just
an ordinary text box and fill random value for it, before submission?
If this is not the case, then how to treat this specific scenario, how
to display/obtain value of captcha and then submit this value along
with other (fixed) values?

Regards,
Arvind.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Server Error : Deployment Failed

2011-08-20 Thread steveb
and me

On Aug 20, 3:13 pm, BoulderGae  wrote:
> Me Too!
>
> On Aug 19, 10:34 pm, culov  wrote:
>
>
>
>
>
>
>
> > havent been able to deploy in the last hour...
>
> > On Aug 19, 8:24 pm, Shawn Brown  wrote:
>
> > > Hello,
>
> > > I consistently get:
>
> > > Unable to update:
> > > java.io.IOException: Error posting to 
> > > URL:https://appengine.google.com/api/appversion/clonefiles?app_id=fluency...
> > > 500 Internal Server Error
>
> > > On a related note, are uploads to appengine (meaning deploying) very
> > > slow.  I was averaging around 32kbps which is well below what my
> > > connection tests at 256kbps.  Well that is before deploying failed
> > > completely.  Now all's I see is:
>
> > >         at 
> > > com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServ
> > >  erConnection.java:249)
> > >         at 
> > > com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServ
> > >  erConnection.java:207)
> > >         at 
> > > com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.jav
> > >  a:639)
> > >         at 
> > > com.google.appengine.tools.admin.AppVersionUpload.cloneFiles(AppVersionUplo
> > >  ad.java:502)
> > >         at 
> > > com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersi
> > >  onUpload.java:462)
> > >         at 
> > > com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload
> > >  .java:137)
> > >         at 
> > > com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:30
> > >  0)
> > >         at 
> > > com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52)
> > >         at 
> > > com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:59
> > >  8)
> > >         at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:157)
> > >         at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:65)
> > >         at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:61)
>
> > > and
>
> > > 37% Cloning 1027 application files.
> > > 37%  on backend null.
>
> > > So what do I need to do to reply?
>
> > > Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Multi user chat room

2011-08-20 Thread Sébastien Tromp
On Fri, Aug 19, 2011 at 9:35 PM, MK Z  wrote:
> Hi,
> Im very new to this GAE services. So far I managed to run my apps on
> GAE. Im trying to add multi-user chat on my app. Ive been trying to
> search how to implement this-both using XMPP and Channel API. Im
> interested on the latter. The problem is I couldnt find any tutorial
> or example to begin with.. the channel API look simpler but whe I
> visited other people blog/tutorial it doesnt really show how to do
> it.. can someone help me please. Thanks

First of all you should take a look at the documentation
(http://code.google.com/appengine/docs/java/channel/) and the
tic-tac-toe application
(http://code.google.com/p/java-channel-tic-tac-toe/). It provides a
very good base to implement the Channel API for a single user.

To add a multi-user chat you could reuse the same basics. When a user
sends a message, make it send a request to the server. The server then
gets the list of all the connected users IDs (stored in memcache for
instance) and broadcast the message to each of them (as shown for a
single user in the documentation).

You will then need to handle the user's presence
(http://code.google.com/appengine/docs/java/channel/overview.html#Tracking_Client_Connections_and_Disconnections)
to update the list of connected users as people join and leave.

This would allow you to create a basic multi-user chat. If you have
more specific questions, feel free to ask.
-- 
Sébastien Tromp

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.