http

Does the REST architectural style require physically separate clients and servers?

Is it a requirement that RESTful interactions occur between physically separate clients and servers? i.e. does the interaction need to involve the network stack in some way? Is there any benefit to employing an HTTP-like "calling convention" between the various components of an application? It seems to me that the benefits of REST, su...

Set more than one HTTP header with the same name?

As far as I know it is allowed by the HTTP spec to set more than one HTTP header with the same name. Is there any use case to do so (from client to server and vice versa)? HTTP 1.1 Section 4.2: Multiple message-header fields with the same field-name MAY be present in a message if and only if the entire field-value for that hea...

iPhone HTTP live streaming

Have been researching the best way to tap into a live stream already being broadcast by S4C here - mms://media7.unique-media.com/s4c_uk_live (will open in something like quicktime) Need to know best practices to get this streamed to iPhone in development. Any pointers? ...

why do i get this error "Unknown host http:80"?

i'm developing an application for blackbery, i'm displaying a webpage using Eclipse and net.rim.device.api.browser.field.* api when i click a submit buttom in a form i get this error "Unknown host http:80", can anyone helpme? ...

Ajax Problem, variables are not getting sent

This ajax thing im working on is not doing what i tell it to do. On the client JS side I alert everything that is sent through the request, and on the PHP side I print out everything that it receives. These two lists of variables are not the same. I do not understand why. Here how I am sending the data (over post): xhr.onreadystatecha...

How to handle NSURLRequest HTTP error 303?

When I run my NSURLRequest in Cocoa, I get a 303 HTTP error, which is a redirect. How can I pull the proper URL to redirect to? Is it in the error variable, or somewhere else? ...

Selector.select(timeout) x Selector.selectNow()

Hi, I'm implementing a Non-Blocking HTTP server in Java and decided to use pure Java NIO. I'm combining a NIO Selector with a small thread pool to perform the operations indicated by the selector. Leaving the system choose the default selector (tested in Linux 2.6 epoll and Mac OS Snow Leo KQueue) and using Selector.select(TIMEOUT); I ...

HTTP stack in C

Hi all, Are there any HTTP protocol stacks implemented in C? Thanks in advance. Update: looking for client implementations. ...

Realtime HTTP notifications using Google Analytics when user views my page?

Hello, I was wondering if its possible with Google Analytics to send real-time HTTP notifications to say PHP when a user visits my website. If not, I am curious about any real-time notifications that Google Analytics can send to me when a user visits my site. Thanks! EDIT::Just came across Piwik and it says that it is realtime... does ...

Python equivalent of Curl HTTP post

I am posting to Hudson server using curl from the command line using the following-- curl -X POST -d '<run><log encoding="hexBinary">4142430A</log><result>0</result><duration>2000</duration></run>' \ http://user:pass@myhost/hudson/job/_jobName_/postBuildResult as shown in the hudson documentation..can I emulate the same thing using p...

XMLHttpRequest simple HTTP GET not working?

<html> <body> <SCRIPT type="text/javascript"> var xmlHttp = new XMLHttpRequest(); var async = true; xmlHttp.open("GET", "http://www.google.com", async); if(async) { xmlHttp.onreadystatechange = function() { if(xmlHttp.readyState == 4) { if (xmlHttp.status==200) a...

Spoofing HTTP-request Referrer from HTML?

Is there some secret and mystical way to change the value of my HTTP-request's referer, or at the very least, keep it from showing? Also, using a MitM page from another domain would not solve my issue, as you are now just submitting that other page's value. This is not browser specific, I would need to do this on the HTML level. The pr...

Best Learning Resource for OAuth

I have to use OAuth for my Android client and I have found that the learning resources are pretty rare or inadequate for this technology. Does anybody know a good book/tutorial/online resource to learn OAuth? Thank you. ...

XML-RPC Javascript Unsupported method ('OPTIONS')

We've got an XML-RPC server (implemented in python), and I'm trying to write a simple javascript app to send calls to it. Whatever library I make I seem to always get the error: Unsupported method ('OPTIONS') It's fair to say I don't understand the underlying protocols for XML-RPC and HTTP as well as I should. But what I do know is th...

JS/CSS caching problem

Hello, To reduce http requests, as well as make the rollout process easier for js/css files, I've setup my php app to do concatenation of js and css files. All included files are sequentially combined into one large file using 2 letter codes for each file (ex. home.js code = "AA"). To generate the names I combine all the codes in the or...

Java Network Monitor

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. ...

How to set Cookies at Http Get method using Java

I want to do a manual GET with cookies in order to download and parse a web page. I need to extract the security token, in order to make a post at the forum. I have completed the login, have read the response and extracted the cookies (3 pairs of (name,value) ). I then wrote the String containing the cookies like this: CookieString="na...

permanent-id-based hyperlinking scheme for Web HTTP/HTTPS, how many ways can it be done?

Background: Suppose I have a website that is hosted on http://www.example.com and the site has a lot of absolute internal links. Something happens that requires me to move the entire website to http://www.example.net with all other things remaining the same. Obviously, I can do a global search and replace on the website code to fix thi...

ASP.NET: How to enforce a reload of a web static file

When doing webpages, the client/browser decides if it updates a file like an image or .css or .js or if it takes that from the Cache. In case of .aspx page it is the server who decides. Sure, on IIS level or also using some HttpModule techniques I can change the headers of requests to tell the client if and how long a file should be ...

Can HttpReceiveHttpRequest receive a HTTP_DATA_CHUNK of type other than HttpDataChunkFromMemory

We can receive a HTTP request body in two ways: call HttpReceiveHttpRequest with HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY set; call HttpReceiveHttpRequest with HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY cleared and then call HttpReceiveRequestEntityBody. In the first case an array of HTTP_DATA_CHUNKs is filled, in the second - the raw bytes buff...