http

How to receive and parse a HTTP incoming request using python?

How to receive and parse a HTTP incoming request using python? ...

How to configure freebase java client to connect through a proxy?

I am looking for a way to configure the freebase java api to connect to freebase through a proxy. I have set up sytem properties System.setProperty("http.proxyHost", "proxy"); System.setProperty("http.proxyPort", "8080"); System.setProperty("http.proxySet", "true"); but it doesn't have any effect. Could anybody help? ...

Issue sending a base64 encoded string via HTTP with .NET

Ok, so the problem is I'm trying to send a byte array via HTTP encoded as base64. While the string I receive on the other end is the same size as the original string, the strings themselves are not identical, hence I can't decode the string back to the original byte array. Also, I've done conversion to/from base64 on the client side bef...

Is there ever any reason to respond with "Vary: *" and "Vary: Foo" for the same resource?

Is there any reason for a HTTP server to sometimes respond with Vary: *, and sometimes with Vary: Foo, to requests for the same resource? What should a cache do, if after receiving (and caching) both responses, it then receives a request with a matching Foo header, for which the Vary: Foo response is suitable? Can it serve the matchin...

BlackBerry App Unable to establish Http Connection with Server?

Following is the code that I am using for the HTTP conncetion. HttpConnection connection = null; // InputStream inputstream = null; connection = (HttpConnection) Connector.open("http://www.google.com"); //HTTP Request connection.setRequestMethod(HttpConnection.GET...

WebRequest bug?

EDIT: Solved, the problem was server-side. I'm using C# and .NET2 and I wonder is that a WebRequest bug.. I do several good requests with this method and all is fine, but after that every time I get "The operation has timed out.". I really don't understand why is that. public string RequestPage(string url) { HttpWebRequest req ...

dynamically modify HTTP POST data

I set up a squid proxy server, and I would like to monitor and modify certain HTTP POST requests before it goes out of squid. What are my options? ...

Using Java NIO for pipelined Http

Researching the web, I've found that pipelined Http is much faster and more power efficient (specially for mobile devices) than queued or parallel connections. The support from general libraries however seams to be small. Just recently has the widespread Apache HttpCore project gained support through its NIO module. At least it says so ...

HTTP versus FTP over distributed data

I have data files , mostly text files of very large size and they are spread over systems . Now i want to perform various operations like sorting , searching and other similar operations over these systems . I have used parallel python so far in order to access other files in different systems and perform the operations like search. bu...

Modifying PHP / SOAP code to add HTTP Header in all requests

I;ve inherited some php SOAP code and due to changes in the service we are using, I need to modify to "add an authorization in the HTTP headers of all requests". I'm not sure what to do and if its even possible. Part of the relevant code looks like this: function soap_connect() { $soap_options = array( ...

Is it possible to disconnect an http client from PHP?

In PHP is it possible (and is it safe) to close the http connection without returning any http status code? My server is apache. Will this be logged to the access log or error log? ...

ASP.NET 4 Get description for HTTP status code

In ASP.NET you can set the Response.StatusCode to for example 404. Should the status line / description always be set? (to in this case "404 Page Not Found") How do you get the description if you only have the code (404)? Is this somewhere in the framework or do you manually have to hardcode the descriptions? ...

Making an HTTP request in Pharo and getting the response headers

how can I make an HTTP request and get both the response content and the response headers? ...

Detecting blocked sites overseas

Is there a mechanism to programmatically detect whether a site is blocked/censored in a specific ISP without having a hosted server within the ISP? Any suggestions related to hacking packets and routing them to known ISP servers? Public distributed system that allows to submit HTTP queries? Other suggestions? ...

Setting the cookie which works across HTTP and HTTPS, with www and without www

Hi, I have a website where I want to do transaction which has to be done over https, but the https works only without www (due to some issue while taking SSL certificate). http:/ /www.example.com https:/ /example. com I want to set the cookies which are accessible in above of two. Limitations: 1. https:/ /example. com can not made ...

Alternative to "Referer" Header

I have used the code "request.getHeader("Referer");" The code seemed to work fine. But recently I found out that it is not working in IE. IE was throwing null. I am now left clueless about how to go forward. Is there any alternative for "Referer" header which can get the previous link and work correctly in all the browsers? Setting a cu...

Want to get a Google home page through proxy using JAVA Sockets.

Hi All, Want to get a Google home page through proxy using JAVA & i must use only sockets in java NOT URL class. I need to authenticate with some username & password to proxy. How to do this????(I am not allowed to use URL only socket can be used) Please reply, Thank's For Reading!!! ...

Correct HTTP status code when resource is available but not accessible because of permissions

I am building a RESTful protocol for Dynamic Carpooling applications, for my Computer Science thesis. In the Protocol I also have to formally specify the HTTP status code for each operation. I've got this "privacy related" problem. Suppose the following: GET /api/persons/angela/location Retrieves the current position of user "angela"...

Showing a long running shell process with Apache

I have a CGI script which takes about 1 minute to run. Right now Apache only returns results to the browser once the process has finished. How can I make it show the output like it was run on a terminal? Here is a example which demonstrates the problem. I want to see the numbers 1 to 5 appear as they are printed. ...

Java HTTP Post - weird stream behavior

I was working on HTTP post using java and encountered a weird stream behavior. Here's what happened: Func() { String data = “MyMessage” URL url = new URL("http://edsall:8080"); URLConnection conn = url.openConnection(); conn.setDoOutput(true); OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream())...