Results 1 to 3 of 3
Thread: java POST 400 Bad Request .
- 05-05-2012, 05:16 AM #1
Member
- Join Date
- Apr 2012
- Posts
- 4
- Rep Power
- 0
java POST 400 Bad Request .
Hi
I am trying to write an application in java lang to login to a website. The form is :
<form action="Desktop/Login.aspx?t=62318179" method="post">
<input type="text" name="uid" size="19" class="Textbox" dir="ltr" maxLength="41" >
<input type="password" name="password" size="19" class="Textbox" dir="ltr" maxLength="20">
</form>
when I tryed to send uid and password I received "HTTP Error 400. The request has an invalid header name." error. I think that s because the question mark in the action="Desktop/Login.aspx?t=62318179" but I dont know how to solve this problem. Plz show me a solution and also an example code if possible .
Thanks
- 05-05-2012, 12:59 PM #2
Re: java POST 400 Bad Request .
Can you explain what your java programming question is?
What you posted looks like HTML.If you don't understand my response, don't ignore it, ask a question.
- 05-06-2012, 04:17 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: java POST 400 Bad Request .
More likely you are doing something with .Net, not Java related.
Similar Threads
-
How to send a post request to website via java
By mehdi_s2 in forum NetworkingReplies: 4Last Post: 05-15-2012, 02:19 PM -
Authenticating for a java POST request
By stodds in forum Advanced JavaReplies: 1Last Post: 12-08-2010, 12:11 AM -
HTTP Post Request from Java
By Darrarski in forum New To JavaReplies: 10Last Post: 06-05-2010, 05:22 PM -
First post as per request
By happyknappy in forum IntroductionsReplies: 3Last Post: 07-30-2008, 01:33 AM -
How to post HTTPS request from java client to server
By Desai in forum NetworkingReplies: 1Last Post: 07-14-2007, 05:15 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks