Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Unfortunately, if I call connect(), nohing happens. Commented Jan 6, 2017 at 15:07
  • @scarface : this is strange, but you must be right since the comments from the following topic state the same thing : stackoverflow.com/questions/1051004/… Commented Jan 6, 2017 at 15:20
  • I am going to check those topics. Anyway it is weird getting InputStream when, in some cases, I do not actually get any output from server. By the way also when I ask for a response number, the request is sent. Commented Jan 6, 2017 at 15:41
  • 1
    @scarface : yes it seems that in any case, you have to read something from the server (inputstream, response code, content length...). At least it makes sense to read the response code whatever your request is . Commented Jan 6, 2017 at 15:46