Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSON and http header

 
olze oli
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got the solution... just used HttpClient, PostMethod and added the application/json content
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic