http « http « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » http » http 

1. WebDAV with J2ME    stackoverflow.com

Is there a way to use WebDAV with J2ME (some libraries or manual coding)? I've tried:
- javax.microedition.io.HttpConnection, but "SEARCH" method not supported there
- javax.microedition.io.SocketConnection ...

2. Socket closing problem - last portion of data is lost    stackoverflow.com

I have a Java program that accepts connections, receives HTTP requests and sends HTTP replies and some data stored in file (this is a part of caching proxy). Removing everything irrelevant, ...

3. What does it mean when a DataInputStream keeps returning 0?    stackoverflow.com

I have a DataInputStream, created from a Socket in Java. The connection is to a simple web server that uses chunked transfer encoding. The web server does in fact work in ...

4. Should I use the java.net or org.apache.http library for HTTP in my Java application?    stackoverflow.com

What should I know about the trade-offs between these two HTTP libraries?

5. Simple HTTP Framework and time issue    stackoverflow.com

I'm using Simple Framework for my recent project, and there is a problem with the date headers generated by the system. I can get my local time from Date ...

6. Java Network Monitor    stackoverflow.com

Please recommend a good network monitor that monitors all the Request and the responses made by my java program and gives me detail on the Headers.

7. Methods for guestimating upstream bitrate using http streams    stackoverflow.com

I'm writing a little Java client side app which uploads things using http streams to remote servers, i've included a progress bar to provide the user with an estimate of completion. ...

8. Read binary data from a socket    stackoverflow.com

I'm trying to connect to a server, and then send it a HTTP request (GET in this case). The idea is request a file and then receive it from the server. ...

9. How do you set javascript as enabled when using DefaultHttpClient?    stackoverflow.com

Im trying to use DefaultHttpClient to log into xbox.com. I realize that you cant be logged in without visiting http://login.live.com, so I was going to submit to the ...

10. HTTP socket closed on Linux, then unable to open it again    stackoverflow.com

We have an issue on one of customers servers, where something seems to close the java application HTTP socket, and not let it open afterwards for some time. Meaning it goes like ...

11. Multipart requests/responses java    stackoverflow.com

I have a task to implement sending of http multipart request and interpreting http multipart response. I decided to start from the response as I just have to receive a response ...

12. org.apache.http.MalformedChunkCodingException: Unexpected content at the end of chunk    stackoverflow.com

I am using HttpClient4.1 and jdk1.6.0_16, I am trying to download more than 1000 attachments using HttpClient in a program. I used ThreadSafeClientConnManager for creating the connectionManager. When i try downloading ...

13. Receiving mixed media over Java socket. Yours better?    stackoverflow.com

I'm about to give a programming exercice in Java and I'd like my students to discover the intrinsics of HTTP themselves rather than having URLConnection doing all the job for them. ...

14. Parser for the multipart format    stackoverflow.com

org.apache.http can work with multipart? I send http request with header Range : bytes=0-500,9000-9999 I get file format:

--00000000000000001873
Content-Type: audio/mpeg
Content-Range: bytes 0-8999/4593415

ID3....bytes....
...bytes®
--00000000000000001873
Content-Type: audio/mpeg
Content-Range: bytes 9000-9999/4593415

?....bytes...
...bytes
--00000000000000001873--
How to take only the bytes?

15. Flow for http request/response for a webserver with HttpCore    stackoverflow.com

I'm trying to write a small webserver that accepts Http requests and returns Http responses in Java. I am using Apache HttpCore and specifically, I am looking at HttpServerConnection as the ...

16. Read chunked through socket    stackoverflow.com

For my app I send a http-get request through a socket. Then de website sends a respone, but it is using chunked encoding. Is there a way to download the full ...

17. Ping vs HTTP HEAD    stackoverflow.com

I'm writing a Java app which has a feature to check whether it's connected to the internet by periodically trying to access a server. My first idea was to Ping the ...

18. Saving a web page to a file in Java    stackoverflow.com

I am trying to read html site using below code,System hanging any hints please:

package com.test;

import java.io.BufferedWriter;   
import java.io.FileWriter;   
import java.net.Socket;  
import javax.net.SocketFactory;  
import java.net.InetAddress;

public class ...

19. Java HTTP NTLM Implementation Differences    stackoverflow.com

This link details on the various http client java implementations. I am looking for any links which could provide information about their NTLM protocol implementation differences. On one of ...

20. using sockets to fetch a webpage with java    stackoverflow.com

I'd like to fetch a webpage, just fetching the data (not parsing or rendering anything), just catch the data returned after a http request. I'm trying to do this using the high-level ...

21. How do I recognize EOF in Java Sockets?    stackoverflow.com

I want to recognize end of data stream in Java Sockets. When I run the code below, it just stuck and keeps running (it stucks at value 10). I also want ...

22. Is there a way to import wireshark http traces into java?    stackoverflow.com

Is there a way to import wireshark http traces into java? or do we have an api set for using wireshark in java? I want to capture network traffic headers using ...

23. HTTP help    coderanch.com

To what I have understood, Http protocol is stateless because, once the data packets reach the destination, the connection with the server gets disconnected and only on the next request does the communication starts. To be more clear let us talk of a phone call made. Here, when there is a ring on the phone, we pick it up to talk. ...

25. why are "http://localhost:8080/" and "http://201.10.10.1:8080/" not    coderanch.com

why are "http://localhost:8080/" and "http://201.10.10.1:8080/" not Actually i am running the JAVA WEB SERVER(TM) on my machine and all of the "http://localhost:8080/","http://201.10.10.1:8080/" and "http://127.0.0.1:8080/" are resolved perfectly by Internet Explorer when i am woking on my standalone PC but two of them i.e. "http://localhost:8080/" and "http://201.10.10.1:8080/"(IP address of my machine) are not resolved in the LAN envionment of my College Lab.only ...

26. HTTP 1.1 Implementation    coderanch.com

27. HTTP protoco    coderanch.com

hi all, please answer me the following question A web store must be able to keep track of a customer during each session, but HTTP is a protocol without state. Explain what it means for a protocol to be stateless and describe two ways that the web developer can maintain state thanks and regards gopal

28. Http GET    coderanch.com

29. Http Tunnelling    coderanch.com

hi, I am working on a chat application. I am using sockets.Since sockets cant bypass firewalls we were advised to use Http Tunnelling. In my perspective,Its nothing but the client has to establish an URLConnection with the server and then creating o/p and i/p streams. But our problem is in chat when there is a need for the server to send ...

30. Transfer files using Http. Please help    coderanch.com

31. HTTP Client/Server Problem    coderanch.com

32. HTTP Tunnelling?    coderanch.com

The idea is this: A plain HTTP server would simply generate an error message for any non-http messages. So, instead of an HTTP server, you use a tunneler that knows HTTP as well as the protocol that you want to tunnel, to listen on HTTP port. If you want to tunnel IIOP through HTTP (done very commonly) the port handler should ...

33. Need HTTP API    coderanch.com

I am writing a server program that needs to process HTTP requests. I COULD just write a servlet, and get the webserver to parse the HTTP headers, and bundle all the info up for me, but there will be no other servlets, this will be the only class that receives HTTP requests, so it doesn't seem worth having a whole webserver ...

34. Jabber and HTTP    coderanch.com

There is no official binding for Jabber over HTTP. However standardization work is underway and I think Jabber Inc (www.jabber.com) has implemented it for some of their clients. So it is possible but not widely available. As for security, Jabber provides three authentication protocols: a simple plain text password, a digest based on stream ID, and a zero-knowledge protocol where passwords ...

35. how can i delete a resource using http?    coderanch.com

36. Http through Firewall/Proxy    coderanch.com

37. HTTP version    coderanch.com

38. is HTTP reliable?    coderanch.com

39. Newbie: How do i use telnet to do a HTTP get    coderanch.com

hi, i am trying to telnet to a HTTP server to port 80 and do a get or a put or something. on my 2000 box i type telnet ww.----.com 80 which produces a response. but if i want to do a GET how can i do that. i would have thought that i would put it in as another argument ...

40. web spider setting HTTP User-Agent    coderanch.com

41. http tunneling    coderanch.com

42. Socket to HTTP    coderanch.com

Angela can you explain your requirements in more detail? Are you responsible for only creating the client or do you also have to create the server? My assumption was: - you were creating a client to send HTTP requests to an existing HTTP/Application server If this is the case then the server already knows how to process HTTP requests/responses and will ...

43. Size problem in http message?    coderanch.com

Thank you Morris, I found a more radical solution installing a JRE 1.3.1 more recent version. Infact this problem seamed strange to me because running the same client.class on windows and JRE 1.4.0 it works very well, instead I had the problem running on HP OpenVMS JRE 1.3.1-1. I've never thought to a buffer size problem because the exception appears opening ...

45. HTTP VS RMI-IIOP    coderanch.com

46. HTTP Tunneling - without polling, for a games website    coderanch.com

I'm building a website which consists of JSP pages and a gaming Applet talking to a Servlet hosted on Tomcat 4.0. All is working well, but scalability is going to be a major issue. The problem lies with the request - response http protocol. First Applet sends their move to the Servlet. The Servlet has no way of letting the opponent's ...

47. Bi-directional tunneled communication through HTTP    coderanch.com

I have an applet that maintains a persistent connection to a tunneling servlet (which tunnels to a back-end C++ process). The current architecture involves POSTing a setup query, then pushing periodic updates back to the applet for display on the web page. This works fine, but now I'd like the capability of sending more requests for the same connection. As far ...

48. sending xml over http - security issue    coderanch.com

Hey all, I am trying to send an XML file over HTTP by using a java program (to a webmethods integration server). but i get the following warning : [WARN] HttpMethodBase - -No credentials available for the 'webMethods' authentication realm at host the return code i get is 401 , acces denied... What do I do wrong? Can anybody help me ...

49. HTTP and concept of connectionless    coderanch.com

I encoutnered some discusssion regarding wether or not http is a connectionless protocoal. I thought the TCP over IP is connection oriented. Connection oriented vs connectionless is a characteristic of transport layer not the high level application protocal. So asking whether or not http is connection less protocal simply does not make sense. Please correct me if I am wrong. Thanks, ...

50. Now getting HTTP code 411    coderanch.com

I posted a topic problem in proxy server. I am struggling for getting my result perfect but yet I am have succeeded. The problem is in logging into a web site which requires user authentication thru login and password just like a mail site or a forum. Error is:- Server returns HTTP code 411 that means length required. I tried to ...

51. http fi modified since    coderanch.com

hello to all of you I want you to excuse me for my english but i am greek I have an application that downloads web sites some times per week i want to make this application to check if the sites are updated since the last time thay have been downloaded. Have any of you any idea about how tha HttpURLConnection ...

52. Http    coderanch.com

Hi everyone, I am currently trying to do an application that does the upload as well the download of files from a http server that needs authentication. The thing is i am not very sure where to begin and i am open to any suggestions. Basically what i am trying to upload is a html file onto the http server and ...

53. Sending XML over HTTP    coderanch.com

54. HTTP object?    coderanch.com

Thanks Stan, I've just knocked this up roughly and was wondering if you could maybe take a peek and give me some feedback. If there is a cleaner way of doing some of things I've done, could you please let me know? import java.util.*; /** * Generic HTTP Request object */ public class HTTPRequest { String requestString; String[] splitString; //Request line ...

56. HTTP information    coderanch.com

57. File transfer using Java Http    coderanch.com

Originally posted by Jagadeesh Sastry: Hi Pat and Freddy, First of all is it possible to complete current requirement using Core java or we need to write Servlets for this? It is always possible to write anything in any limited set, the javax classes all started as code from java. So the answer is yes, you can. But why would you ...

58. ETag and Last-Modified HTTP implementation?    coderanch.com

Does anyone know, in simple terms what a client sends in it's HTTP request when making use of the ETag header, then what the server does with that value? Is it something like this? 1. Client sends first request for file 2. Server gets "checksum" for that file, sends it in the ETag field followed by the file 3. Client caches ...

59. Http 1.0    coderanch.com

Thanks much for this, much appreciated. I agree with what you are saying on the specification/entire URL. It isnt part of the specification I dont think. I may end up having to write directly to the stream. But at least I can try HttpClient and see what happens. Maybe I can "extend" to allow the variation. On a side note, this ...

60. http and www    coderanch.com

61. HTTP and TCP/IP    coderanch.com

HTTP does not tunnel through TCP/IP, but is sitting on top of it. Why? Because it is making heavy use of TCP/IP facilities. When you request a URL, you are using a "connection" to a "socket" on a host represented by an "IP address" - all these quoted words are infrastructure coming from the TCP and IP layers. You could conceivably ...

62. Sending XML files using HTTP Request/Response?    coderanch.com

Hey all! I am not sure if this is the right forum for this question, please redirect me if this is not. With that, here is a question ... from a novice really. We have a situation where we need to send an XML file from our server to another server..URL really (http:// abc.com/xyz.crspx). This URL expects this XML file, reads ...

64. Dufference between Http Call and RPC Call    coderanch.com

Hi , Is the difference between remote Procedure call and a normal Http Call .? I am asking this question in contrast as i have read that json can be used for normal Http Calls where as a Json RPC can be used when making Remote Procedure calls . So please let me know what is meant by RPC call.

65. File transfer using Java Http    coderanch.com

I've got a program that's using POJO's to do a little web server that takes commands. It works great, and it's tiny. But I'm not sure how to extend it to accept an inbound file transfer. Can anyone give me some coding advice for binary file transfer (sans the advice to install a web server...sorry, just not going to do that, ...

66. HTTP OPTIONS sometimes does not work    coderanch.com

The HTTP OPTIONS query does not seem to work on some hosts and I do not know why. On some hosts, I can do the following: OPTIONS /abc/abc.htm HTTP/1.1 Host: www.host.com and as output from the server I get: 200 OK Allow: OPTIONS, PUT, HEAD, TRACE However, on other servers when I try this very same OPTIONS query, either with * ...

67. Disjointed Request/Response HTTP Messaging    coderanch.com

Hi good people, I am writing a prototype health information integration engine which is supposed to facilitate data sharing between clinics and other sources of health data such as research organizations. Data will be exchanged in HL7v3 format, which is based on XML and will be sent via HTTP. The problem is that this is happening across a unstable network necessitating ...

68. Sending HTTP PUT Body    coderanch.com

69. sockets and http    forums.oracle.com

I have written a program that connects to a website using a socket on port 80, and, using an http get, retrieves the source of a page, and using information gathered from the source, fills out a form on that page and submits it using an http post. The problem, however, is that after the first http request is sent, a ...

70. Problem with writing a HTTP ranged GET, Socket Programming    forums.oracle.com

I'm not in a position to completely solve your issue, but to start with I'd highly recommend moving a giant step away from the 'bare metal' socket communications, and use an HTTP communication library which will handle some of the low-level protocol logic for you. That's one thing getting in your way -- you're reinventing the HTTP protocol communication wheel. Here's ...

71. Writing/reading HTTP with plain sockets    forums.oracle.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.