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 ... |
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, ... |
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 ... |
What should I know about the trade-offs between these two HTTP libraries?
|
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 ... |
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.
|
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. ... |
|
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. ... |
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 ... |
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 ... |
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 ... |
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 ... |
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. ... |
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?
|
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 ... |
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 ... |
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 ... |
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 ...
|
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 ... |
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 ... |
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 ... |
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 ... |
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. ... |
|
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 ... |
|
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 |
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 ... |
|
|
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 ... |
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 ... |
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 ... |
|
|
|
|
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 ... |
|
|
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 ... |
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 ... |
|
|
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 ... |
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 ... |
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 ... |
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, ... |
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 ... |
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.comHi 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 ... |
|
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 ... |
|
|
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 ... |
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.comThanks 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 ... |
|
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 ... |
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 ... |
|
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. |
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, ... |
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 * ... |
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 ... |
|
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 ... |
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 ... |
|