http

Why codeigniter etc disallow get variables

Why is it that codeigniter and perhaps other mvc frameworks disallow the use of get variables. Is it security? DO they think that get is overused and abused? I think that both post and get have their places and should be used for their intended uses? Can anyone offer an explanation for me? ...

How do I actually use WSGI?

Suppose I have a function def app2(environ, start_response) If I know that a server implements WSGI, how can I tell the server to call app2 when it receives a HTTP request? app2 here is a function that takes a dictionary and returns a response (a WSGI application). ...

REST client HTTP multipart support

Hi, I have a 3-rd party REST domain that requires doing HTTP multipart POST requests in order to create/update resources. Moreover, getting resource representation is done by a GET request where the response is expected to be a multipart HTTP (the multipart HTTP messages are used for 2 main purposes: 1 - attaching binary files to the res...

MQ HTTP payload delivery?

I'm planning a new system heavily reliant on MQ (unknown implementation at this time). Most of my MQ experience is IBM MQ Series and OS/400's data queues but in nearly every case we polled the queues, or wrote a broker to poll and deliver. There are lots of MQ systems out there now. Instead of writing a broker to poll and deliver, are...

Android HTTP User Agent

Hi.. Can i ask how to get http_user_agent real device? When i use WebView, i can get the real value like this: [HTTP_USER_AGENT] => Mozilla/5.0(Linux; U; Android 2.2; en-gb; LG-P500 Build/FRF91) AppleWebKit/533.0 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 But when i use Apache connection, the result is different like this:...

HTTP request queue with worker pool

Hello. I'm developing application in Java which connects to different web-servers via HTTP protocol (sends them request and waits for response). I would like to use pattern with queue and worker pool, so I'd like to know if there any frameworks in Java providing methods for this? ...

HttpServlerRequest in iphone

hi, i am a newb in http request. is it possible to request httpservletrequest in iphone sdk if it give me some sample code for it. Thanks in advance. ...

Lot's of ActionController::UnknownHttpMethod: CONNECT in a Rails application

I'm getting lot's of these exceptions in a Rails application: ActionController::UnknownHttpMethod: CONNECT, accepted HTTP methods are get, head, put, post, delete, and options As far as I see it seems to be some crawler or something like that trying to use CONNECT as an http verb. I've never heard of it, but the documentation say: ...

Open Street Map tile by http request

does anyone know how to get a tile from OpenStreetMap by http? i mean something as static google map , where i can pass in the query string lat lon and zoom , nothing more ... Sure it is me, but i m losing a lot of time looking for online doc without success ... maybe someone of you know it on the fly Thanks a lot ...

Socket.Accept() causes a one second TCP/IP connect

When using CasiniDev fiddler shows a one second TCP-Connect for each connection from a browser. it's always exactly one second maybe few milliseconds up or down, that's why I think it might be a configuration somewhere. the thing that I can't make any sense out of is when I use System.Net.WebClient.DownloadString() in a loop without fi...

Prevent timeout during large request in PHP

Hi all, I'm making a large request to the brightcove servers to make a batch change of metadata in my videos. It seems like it only made it through 1000 iterations and then stopped - can anyone help in adjusting this code to prevent a timeout from happening? It needs to make about 7000/8000 iterations. <?php include 'echove.php'; $e =...

Does it make sense to set Http Cache Headers on a 404 response?

I have a database that stores images which can be access via a primary key ID (vomit, I know, but it's out of my control). I have a pretty standard Asp .net Mvc Controller that reads the database and if a row is found in the database it returns the image bytes as a FileResult. If a row is not found, I have a custom action result that se...

Disable support for chunked encoding

Is there a way to disable chunked encoding support in a browser? ...

Multiple sessions possible per user.

If a user opens 2 web pages simultaneously they will create 2 sessions. Usually this would not matter but it does create a problem for remember me functionality when attempting to rotate cookie tokens as recommended in the persistent login cookie best practices. There seems to be no way to rotate both cookies correctly where both sessio...

Encrypting HTTP POST data

Hi, I have a HTTP POST string that I am running from a client cpp program against a server running Apache. Following is the POST string that would get fired from the clients: "POST %s HTTP/1.0\r\n" "Host: %s\r\n" "Content-type: multipart/form-data\r\n" "Content-length: %d\r\n\r\n" "Content-Disposition: %s; filename: %s\n" It would b...

iOS: How can i receive HTTP 401 instead of -1012 NSURLErrorUserCancelledAuthentication

I have a problem similar to the one described in the link below. http://stackoverflow.com/questions/2188099/nshttpurlresponse-statuscode-is-returning-zero-when-it-should-be-401 I use [NSURLConnection sendSynchronousRequest:returningResponse:error:] to get data from a server. When NSURLConnection receives the HTTP Code 401, it does not...

Predefined array of HTTP errors for PHP use?

I have an error.php file attached to ErrorHandler that will take the error HTTP status in as a GET variable. Is there an array I can find that has a mapping of status codes to error names and descriptions, or do I have to write one myself? ...

Checking if a URL is broken in Javascript

This question has been posted on Stack before, but none so specific as to what I'm trying to understand. The simplest way to check if a URL is corrrect to send a http Head request. But how do you use that to specify the URL ? I found this in a previous post : function UrlExists(url) { var http = new XMLHttpRequest(); http.open('HE...

Make a link use POST instead of GET

I'm not sure if this is even possible. But I was wondering if anyone knows how to make a hyperlink pass some variables and use POST (like a form) as opposed to GET. ...

HTTP Request Client Timeout Default Settings

I have a server which will take many seconds before it is able to respond to an HTTP Request. I have little influence over the client language / framework used to generate the requests and want to know how long they will wait for a response. I appreciate this will vary for different frameworks / APIs so I want to know the default values ...