Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

post url connection not working

 
sai sudhakar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am providing the below given code. it is working well for POST TYPE=GET but not working for POST:: i need some help
 
Greg Charles
Sheriff
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How isn't it working? Is there an error message, bad response code, no response at all? It's possible that the server you're hitting just doesn't respond to POST requests to that URL.
 
sai sudhakar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting a response code as 400 for request type POST
 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means Bad Request. That doesn't mean that POST is not supported; that would trigger a 405 error (Method Not Allowed). So something is wrong with the data you send.

I think this is beyond just I/O so I'll steal ( ) this thread away to our Sockets and Internet Protocols forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic