tagged [http]

What should a Multipart HTTP request with multiple files look like?

What should a Multipart HTTP request with multiple files look like? I'm working on an iPhone app that makes a multipart HTTP request with multiple image files. It looks like what's happening, on the s...

27 May at 02:3

What is the JavaScript equivalent of C# Server.URLEncode?

What is the JavaScript equivalent of C# Server.URLEncode? What is the JavaScript equivalent of C# Server.URLEncode?

29 Jun at 17:0

Representing Date in http header using QDateTime

Representing Date in http header using QDateTime HI, Date in http header is represented according to RFC 822 (As Updated by RFC 1123), like Wed, 15 Jul 2009 12:16:22 GMT. Able to represent in QDateTim...

15 Jul at 13:33

How to submit a multipart/form-data HTTP POST request from C#

How to submit a multipart/form-data HTTP POST request from C# What is the easiest way to submit an HTTP POST request with a multipart/form-data content type from C#? There has to be a better way than ...

30 Jul at 00:24

Detect/estimate country of a http-request in ASP.NET

Detect/estimate country of a http-request in ASP.NET I'm looking for ways to detect/estimate the from which a is coming in . I know there are some solutions with services/country lookups but I never u...

17 Aug at 12:33

Access Request Body in a WCF RESTful Service

Access Request Body in a WCF RESTful Service How do I access the HTTP POST request body in a WCF REST service? Here is the service definition: Here is the implementation: ``` public MyData GetData() {...

17 Aug at 12:53

HTTP HEAD response - set Content-Length

HTTP HEAD response - set Content-Length I'm trying to build a HEAD method to one of our services so that clients can peek at the content type and size before deciding whether to download it. How can I...

21 Aug at 13:17

What is the best Java library to use for HTTP POST, GET etc.?

What is the best Java library to use for HTTP POST, GET etc.? What is the best Java library to use for HTTP POST, GET etc. in terms of performance, stability, maturity etc.? Is there one particular li...

24 Aug at 13:13

Drupal6: Accessing node info from hook_preprocess_page(&$vars)

Drupal6: Accessing node info from hook_preprocess_page(&$vars) For a certain content type, I want to alter the access denied error message. What is the best way to go about doing this? I was hoping to...

29 Aug at 03:38

How do I send a very simple status update with the iPhone SDK?

How do I send a very simple status update with the iPhone SDK? I'm building an app that will allow the user to send a status update to twitter about something they have done in the app. What is the ea...

31 Aug at 05:12

How to check if a URL exists or returns 404 with Java?

How to check if a URL exists or returns 404 with Java? ``` String urlString = "http://www.nbc.com/Heroes/novels/downloads/Heroes_novel_001.pdf"; URL url = new URL(urlString); if(/* Url does not return...

4 Sep at 10:58

How can I make a multipart/form-data POST request using Java?

How can I make a multipart/form-data POST request using Java? In the days of version 3.x of Apache Commons HttpClient, making a multipart/form-data POST request was possible ([an example from 2004](ht...

4 Sep at 12:27

How do I make HttpURLConnection use a proxy?

How do I make HttpURLConnection use a proxy? If I do this... it prints The problem is, I am behind a proxy. Where does the JVM get its proxy information from on Windows? How do I set this up? All my o...

16 Sep at 13:28

Non-blocking HTTP requests in object-oriented PHP?

Non-blocking HTTP requests in object-oriented PHP? I have a PHP client application that is interfacing with a RESTful server. Each PHP Goat instance on the client needs to initialize itself based on i...

23 Sep at 02:17

C# method to do URL encoding?

C# method to do URL encoding? what c# class method can I use to URL encode a URL string? In my use case I want to pass a URL string as a URL parameter itself. So like burying a URL within a URL. Witho...

1 Oct at 22:36

How to solve a "HTTP Error 404.3 - Not Found" error?

How to solve a "HTTP Error 404.3 - Not Found" error? Simple problem. I start up VS2008 and create a new WCF Service application. This will create a default application with a few test methods showing ...

Are HTTP cookies port specific?

Are HTTP cookies port specific? I have two HTTP services running on one machine. I just want to know if they share their cookies or whether the browser distinguishes between the two server sockets.

23 Oct at 08:55

Cocoahttpserver serving images from iPhone App Bundle

Cocoahttpserver serving images from iPhone App Bundle I am having trouble getting Cocoahttpserver from Duesty Designs (awesome open source library makers of CocoaAsyncSocket) to serve images from my a...

http connection reuse

http connection reuse I would like to better understand how .Net http connection reuse works. 1. When I use HttpWebRequest to send something to some server twice from the same appdomain, is the connec...

8 Nov at 18:23

HTTP 401 - what's an appropriate WWW-Authenticate header value?

HTTP 401 - what's an appropriate WWW-Authenticate header value? The application I'm working on at the moment has a session timeout value. If the user hasn't interacted for longer than this value, the ...

17 Nov at 11:55

Is there a .NET ready made method to process response body of a HttpListener HttpListenerRequest body?

Is there a .NET ready made method to process response body of a HttpListener HttpListenerRequest body? I'm using HttpListener to provide a web server to an application written in another technology on...

20 Nov at 00:17

SOAP object over HTTP post in C# .NET

SOAP object over HTTP post in C# .NET I am trying to compose a SOAP message(including header) in C# .NET to send to a URL using HTTP post. The URL I want to send it to is not a web-service, it just re...

25 Nov at 18:27

Ruby: How to post a file via HTTP as multipart/form-data?

Ruby: How to post a file via HTTP as multipart/form-data? I want to do an HTTP POST that looks like an HMTL form posted from a browser. Specifically, post some text fields and a file field. Posting te...

4 Dec at 21:7

how do I manually create POST parameters that are nested? (e.g. I'm creating the request in .Net to contact a Rails backend)

how do I manually create POST parameters that are nested? (e.g. I'm creating the request in .Net to contact a Rails backend) How do I manually create nested POST parameters for a http web request? I h...

7 Dec at 05:8

Get original URL referer with PHP?

Get original URL referer with PHP? I am using `$_SERVER['HTTP_REFERER'];` to get the referer Url. It works as expected until the user clicks another page and the referer changes to the last page. How ...

8 Dec at 04:27