File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes JSON and http header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "JSON and http header" Watch "JSON and http header" New topic
Author

JSON and http header

olze oli
Ranch Hand

Joined: Jun 20, 2009
Posts: 148
hey there,

i want to develop a little ap for controlling a website (dont want to open the browser all the time)
so i started but now its going a little bit tricky

this is what firefox says (live http headers):



so i started creating the JSONObject with the json.org library but now i get stuck...

i use HtmlUnit to open the file.php?getSearchResults but how should i pass the JSONObject to it?

this is the first time i do such expert stuff, so please be patience with me

ps.: i didnt know where to post this, so i hope this is the correct forum
olze oli
Ranch Hand

Joined: Jun 20, 2009
Posts: 148
got the solution... just used HttpClient, PostMethod and added the application/json content
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSON and http header
 
Similar Threads
To know about File Upload
Request Object
HttpUrlConnection: Login works only for first page
HttpClient file upload code review
response.setHeader not working