http

multipart file-upload post request from java

I'm trying to make a program that uploads a image to a webserver that accepts multipart file-uploads. More specificly i want to make a http POST request to http://iqs.me that sends a file in the variable "pic". I've made a lot of tries but i don't know if i've even been close. The hardest part seems to be to get a HttpURLConnection to...

determining HTTP packets

Greeting, how is possible to determine from captured packets using sharppcap if the packet is http packet or not? and can we determine frpm TCP packets if the packet is HTTP or not? ...

Can a http server detect that a client has cancelled their request?

My web app must process and serve a lot of data to display certain pages. Sometimes, the user closes or refreshes a page while the server is still busy processing it. This means the server will continue to process data for several minutes only to send it to a client who is no longer listening. Is it possible to detect that the connect...

Scriptable testing/debugging HTTP/HTTPS cookies and redirects

I need to setup some automated testing of HTTP requests, to check cookies are doing the right thing, with (manual) debugging when there is a problem. So far I've been muddling along with Firebug, but it's quite a bit of effort using that, and I would prefer some form of scriptable tool, both to make it easier for me and to allow an auto...

HTTP validation utilities?

Does anyone know of a utility that can check whether a HTTP request/response is valid? ...

Detecting HTTP client used with HTTP Server ?

Hi all, I used the same request with 2 differents client HTTP. One is accepted by server (java request in IE) and not the other (Indy Client in Delphi software) ? Is there a way to detect the request difference between the two request ? Is there a way to hide I use Indy ? Best regards ...

Axis webservice calls fail sometimes, access.log shows content!

Hi, our app is a webservice client (axis 1) to a third party webservice (also axis 1). We use it for some years now. Since a few weeks, we (as a client) get sometimes HTTP status 400 (bad request) or read timeouts when calling the webservice. Strangely, the access.log of the service shows part of the request or the response instead of...

Can a well-formed HTTP Request contain "NULL"?

My OCSP client is sending me the following HTTP request: POST <NULL> HTTP/1.0 Content-Type: application/ocsp-request Content-Length: 120 The NULL is not mentioned in the RFC for HTTP 1.0. Does that make this a malformed request? ...

general socket question

Hi guys I'm building a client that "talks" to the http server. Now my client needs to download files simultaneously. Right now my client just opens a socket (actually Async Socket) for every connection, but I was wondering whether I could do that with just one socket? Thanks Alex ...

c# ASP HttpResponse with redirect causes HTTP 302

Hi, I have a flow of web pages A and B. On the web page A, I do a "Response.Redirect("B.aspx"); The page B needs a client certificate. When the redirect is done I see a popup asking for a client certificate. I select the correct certificate, which is retrieved from a smart card, and then I insert the pin. Right after, I see a page sayin...

HttpSendRequest not getting latest file from server

I am having an issue with my HTTP requests in my app, such that if the remote file is the same size as the local file (even though its modified time is different, as its contents have been changed), attempts to download it return quickly and the newer file is not downloaded. In short, the process I am following is: Setting up an HTTP co...

HTTP compression - can I configure a client to compress the data sent to a server?

Hello, I'm using IIS 7 as web server for my application. If I enable dynamic content compression in the server, will this also enable clients to send compressed data to the server, if they can? I mean, my application uses SOAP webservices, and clients usually send large chunks of data to the server. The clients are written in C#/.NET. ...

Can clients using http 1.0 or older use UDP sockets instead of TCP sockets?

Can clients using http 1.0 or older use UDP sockets instead of TCP sockets? I was wondering as to what could prevent such use apart from firewall issues and packet size limitations. However, if that isn't a problem, is there anything else that prevents such use. Also, have they been used traditionally? ...

HTTP POST prarameters order / REST urls

Let's say that I'm uploading a large file via a POST HTTP request. Let's also say that I have another parameter (other than the file) that names the resource which the file is updating. The resource cannot be not part of the URL the way you can do it with REST (e.g. foo.com/bar/123). Let's say this is due to a combination of technical...

Google Analytics cookies

My problem: I erased all cookies from my computer. I sent Post request to the X server log and sent me a "normal" Set-Cookie with its parameters, but then somehow it will send request for Google Analytics (GA), in which the "strange" header (utma, utmac, utmcn ...). This happens when I send request in browser. But when I pass a request t...

Can you add any request header when you request from a webpage?

Also, can you SEND any header back? (return headers) when you run a web server? Or, are headers limited? ...

ContentLength vs Actual File.Length

Does anyone has any experience wherein the requested file to download (HTTP) content length in the header does not equal to the actual file length (size) when downloaded? ...

setcookie, Cannot modify header information - headers already sent

Hi,I am new to PHP, I practised PHP setcookie() just now and failed. http://localhost/test/index.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php $value = 'some...

maximum length of HTTP GET request?

What's the maximum length of an HTTP GET request? Is there a response error defined that the server can/should return if it receives a GET request exceeds this length? update: as indicated in the tags, this is in the context of a web service API, although it's interesting to see the browser limits as well. ...

$.ajax + authentication + `@` in username

I am creating a web app which uses jQuery to authenticate: $.ajax({ url: "/session/create?format=json", type: "GET", dataType: "json", cache: false, username: $("#signin-email").val(), password: $("#signin-password").val(), success: function(data) { if(data.success) { success = true; } ...