Forwarding this query to the Sling users list.

Regards
Felix

-------- Original Message --------
Subject:        Ask for Post to Sling
Date:   Wed, 13 Oct 2010 23:07:47 +0700
From:   Zhongmiao Li <[email protected]>
To:     [email protected]




Hi dear Sling technician,

I have stuck in the problem for 10 days and am really eager for help
now. The problem is as follows:
I download the Sling stangalone jar file then run it on my machine. And
I just run it by double clikcing without any modification. However, I
found that there is really something strange.
I wirte a simple HTML containing a form to post a file to it, and I
found that if the action of the form is http://localhost:8080/.....
<http://localhost:8080/>, the post will succeed. However if I write
"127.0.0.1" or my real IP instead of "localhost", it will always fail
with error "not allowed to modify"!  And in my Java program I also tried
two methods, one of which is using HttpClient, and none of them can
work. The error code is always 500.
So can you just tell me what extra components should be added to Sling
or just send me a piece of java code that is sure to work? Really thanks
very much, I'm desperate now!

-- 
Best regards
Li Zhongmiao
Digital Media, College of Computer Science, Zhejiang University

Reply via email to