Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

ERROR Java.io.FileNotFoundException WITH HttpURLConnection.getRespo

  Asked By: Lewis    Date: Jan 26    Category: Java    Views: 2904
  

I'm connectiong to a secure web site (this works fine)
then I've to authenticate (this works fine too)
the point is when I want to egt the ResponseCode after sending datas
to this server,
I receive the following error :

Java.io.FileNotFoundException: https://www.xyz.com/folder1/
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)

corresponding to the code line :

System.out.println(URLconnection.getResponseCode());


what does that mean ?
- connection has failed from the beginning thus remote server never
received the posted datas?
- connection is ok, datas were posted but serveur didn't send
response code ?
- anything else ?

Share: 

 

No Answers Found. Be the First, To Post Answer.