http

how to upload a file with the friendfeed-api python library?

Anyone knows this library? I'd like to know how if (and how) I can use it to send one or more images on my friendfeed account - the documentation basically says nothing. thank you. ...

C# REST client sending data using POST

I'm trying to send a simple POST request to a REST web service and print the response (code is below, mostly taken from Yahoo! developer documentation and the MSDN code snippets provided with some of the documentation). I would expect the client to send: Request Method: POST (i.e. I expect $_SERVER['REQUEST_METHOD'] == 'POST' in PHP) Da...

Does WSGI override `Content-Length` header?

HTTP HEAD requests should contain the Content-Length header as if they were GET requests. But if I set a Content-Length header it gets overridden by the WSGI environment (discussion related to mod_wsgi). Take a look at the following example: from wsgiref.simple_server import make_server def application(environ, start_response): st...

mock https request in java

Let's say I'm writing an application and I need to be able to do something like this: String url = "https://someurl/"; GetMethod method = new GetMethod(URLEncoder.encode(url)); String content = method.getResponseBodyAsString(); Is there a way to provide a mock server that would let me handle the https request? What I'm looking for is ...

Android Http get Session Cookie

I didn't really want to post here as there is so much information on the net, but I've trawled the depths and can't figure it out. Ok so I can't get this to work in two scenario's hopefully the answer is the same for both. My problem is I set the request header but it doesn't seem to send it. I have a session id s=e32ff223fwefd3 , and...

what is the problem with my http GET ??

in VBA i am creating a URL: URL = "http://api.local.yahoo.com/MapsService/V1/geocode?appid=" & yahoo & "&street=" & street & "&city=" & city & "&state=" & state & "&zip=" & zip for example it sets itself to equal this: http://api.local.yahoo.com/MapsService/V1/geocode?appid=username123&street=1893 n. clyde morris blvd &city=dayto...

How to make a jsonp POST request that specifies contentType with jQuery?

I need to make a jsonp POST request with the content type 'application/json'. I can get the POST request to the server like this: jQuery.ajax({ type: 'POST', url: url, data: data, success: success, error: error, async: true, complete: complete, timeout: TIMEOUT, ...

client to Apache via HTTPS. Apache to tomcat via HTTP but want the response from apache to the client as HTTPS

Scenario: Client connects to apache via HTTPS. Apache has a BalancerMember which connects via HTTP to a tomcat. Problem. the response from tomcat to apache and then to the client browser is HTTP. Would want this to be HTTPS since the client connected via HTTPS. Not sure how to do this. Any tips/guidance would be appreciated. ...

Cancel a group of HTTP requests in twisted

I'm making several HTTP requests with twisted.web.client.getPage, and would like to be able to cancel some of them at the user's request. Ideally I would like to do something like: # Pseudocode, getPage doesn't work like this: getPage(url1, "group1") getPage(url2, "group1") getPage(url3, "group1") ... # Later on reactor.cancel_all("gro...

Showing all HTTP data sent in C# using HttpWebRequest

I'm trying to hunt down why a POST request from a C# script isn't working, when the same request works fine in Python. I want to be able to have all the data sent by the script, and the response from the sever, to be displayed on the screen so that I can work out what the difference is between what the C# and Python scripts are sending. ...

How can I use an http proxy with node.js http.Client?

I want to make an outgoing HTTP call from node.js, using the standard http.Client. But I cannot reach the remote server directly from my network and need to go through a proxy. How do I tell node.js to use the proxy? ...

WSGI request and response wrappers

I'm looking for WSGI request and response wrappers for having a more convenient interface than the plain WSGI environ and start_response callback. I want something like WebOb or Werkzeug. But I don't like WebOb's PHP-like usage of GET and POST for parameter dictionaries, because HTTP is not limited to GET and POST and the distinction is ...

Form Grabber for Google Chrome

I want to code a form grabber for google chrome web browser to grab al POST data with IE is simple you just hook HttpSendRequestW but here i don't know wich function to hook and the code is very complicated i tryed to search it. Maybe someone can help ...

Variable to hold results of http request is undefined

In my code, I am making a http request (using cfhttp) and storing the result in a variable. The http request does return results- I know this because I am logging the time of the request and the results. However, something is apparently going wrong sometimes with storing the results of the http request (cfhttp.filecontent) in a variabl...

sub-domain cookies, sent in a parent domain request?

Are sub-domain cookies sent in a parent domain HTTP request? For instance, say I have the cookies: Name Value Domain (not https) ABC 1 .example.com XYZ 0 foo.example.com DEF 0 bar.example.com Would [email protected] and [email protected] be sent along in the HTTP-header cookies on a ...

Logging server-wide request data (including POST data) in IIS 6 / ASP.NET webforms

Here's the big picture. We're running a server in IIS 6 that hosts several web sites and applications, and we're in the process of moving the whole thing to a different data center with a slightly different setup. We've notified our users and updated our DNS info so that theoretically everyone will be happily hitting the new server fro...

ExtJs FormPanel - How to submit form using buttons declared inline?

I'm getting started with ExtJs. I'm building a very simple login form: Ext.onReady(function () { Ext.QuickTips.init(); // turn on validation errors beside the field globally Ext.form.Field.prototype.msgTarget = 'side'; var loginForm = new Ext.form.FormPanel({ url: '/Account/Login', monitorValid: true, ...

Objective-C datatypes and HTTP stream header contents?

I am trying to read out some values from response headers from a Shoutcast stream. In the following code, what datatypes should my variables be when reading the values? *datatype* header = CFReadStreamCopyProperty(stream, kCFStreamPropertyHTTPResponseHeader); *datatype* varname = CFHTTPMessageCopyAllHeaderFields(header); EDIT: U...

Embedding User + Password data for HTTP Basic Access Authentication in Querystring

We're trying to test an API that requires HTTP Basic Access Authentication credentials (http://en.wikipedia.org/wiki/Basic_access_authentication) in the request. Ideally, we could just test the API using a web browser by putting all API parameters in the URL querystring, but we haven't yet found a way to encode the HTTP Basic Access Au...

Rails 3, Custom Actions, and HTML request methods

I don't really understand the pro's and con's of using "post" vs "get" vs "put" requests, on custom controller actions, and whether to use links or forms/buttons. So let's say I have a simple to-do list with tasks, and a tasks controller, and I want a "complete" action where I find a specific task in the db and update it's status attri...