http

how to get the content of a value posted as the body in asp classic?

I've seen a couple of rest examples where the xml message gets posted in the body of the http request, and not in a named parameter... in classic asp I have the request.form object that allows me to get the posted values, but I have to specify the name of the parameter... is there some way to get the whole content of the post? I would...

What's the size limit for a field in a form post?

The title is self-explanatory, if you're using a form field to post text of arbitrary size, what limits are considered relevant? Memory limits, browser limits, application server limits? Update: A form method=post is the case. The form field is being used to submit a file (its contents) to the server. The file is generated on the clien...

What Http code should i return for "Thing not found"?

i'm constructing a web-service that is used, in this particular case, to ask for information about a patron. Let's say, for the sake of argument, that the lookup web hit is: GET /patrons/619 HTTP/1.1 If the patron is found, i return code 200: HTTP/1.1 200 OK If you omit, or give an account number that is not a number, i return 40...

HTTPS C# Post ?

Hi Guys, I am trying to login to a HTTPS website and then navigate to download a report using c# (its an xml report) ? I have managed to login OK via cookies/headers etc - but whenever I navigate to the link once logged in, my connection takes me to the "logged out" page ? Anyone know what would cause this ? ...

How to make HTTP requests in actionscript 2

I'm fairly new to actionscript 2 and HTTP, but I need to be able to send an HTTP request message through actionscript 2. I'm not to sure how to do this. Thank you for the help ahead of time. ...

Is there a Python interface to the Apache scoreboard (for server statistics)?

In short: Is there an existing open-source Python interface for the Apache scoreboard IPC facility? I need to collect statistics from a running server WITHOUT using the "mod_status" HTTP interface, and I'd like to avoid Perl if possible. Some background: As I understand it, the Apache web server uses a functionality called the "score...

How to circumvent SSL/TLS trust validation failure in C# c lient code?

I have written a C# client to make a multipart-form data post to a server on the internet. While testing my code, I started getting exceptions as follows: {System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.Authenticati...

A custom ActionResult for a multi-part http response?

I'd like to respond to an http request with both a txt file and an html page. This way the client can save the file and see a summary of that file's contents via an html page. Since the file is generated on the fly, I have to use state management on the server to generate the summary on the second request. I'd like to avoid this and wra...

php http headers

Was wondering a couple of things. Does http headers cache everything on the page. And if i have some javascript files will it cache them as well for subsequent pages, or is it more complicated then that. Example: If I cache all javascript files on page1.php will the files still be cached on page2.php or does it cache files for page1.p...

400.0 - Bad Request with MSXML2::IXMLHTTPRequestPtr

I'm trying to access an xml file over http. The address is similar to: http://localhost/app/config/file.xml When pasting this in a browser the xml is displayed as expected. In my software I am using: MSXML2::IXMLHTTPRequestPtr rp; ... rp->open( "GET" , "http://localhost/app/config/file.xml" ); and getting the following response: <...

What Encoding Do I Perform On Media Before Sending It In A HTTP Response Body

Hi there, I am currently developing a HTTP server. When a client requests a PNG, my response headers are properly formatted and respond with Content-Type : image/png What steps and encoding processes do I have to perform on my .png file to send it as a byte[] in the http response body? Thanks! ...

using HTTP PUT, but not fully replace the entity

Hi guys, I'm developing a REST api, and I'm wondering the following: I want to use HTTP PUT to update some entities in the webservice. The format will be a urlencoded body. Is it acceptable to only update the fields that were actually specified, rather than the entire entity? I'm asking, because PUT would be a very convenient method t...

Last Modified Date of a file on a web site

Is there a way to get the Last-Modified-Date of a file on a Web Site? i.e. Here is an example file I have out there: http://www.ymcadetroit.org/atf/cf/%7B2101903E-A11A-4532-A64D-9D823368A605%7D/Birmingham_Youth_Sports_Parent_Manual.pdf ...

How can I test client pipelining in java?

Can anyone suggest a simple setup of a servlet in java that supports pipelining? (It is for unit testing, so simplicity is better than scaleability). ...

Sending a HTTP POST request

To implement single sign off, i would like the user to get logged out of application B additionally when ever the user clicks logout on application A. Is it possible to implement this using some form of a POST request to application B? i.e. when the user clicks on logout: Generate existing POST request to logout of application A Genera...

Python urllib2 with keep alive

How can I make a "keep alive" HTTP request using Python's urllib2? ...

What's the correct response to unauthorized HTTP request?

I am writing web application I am not sure what is the correct response to unauthorized request. For user it is convenient when server response with 302 and redirects him to login page. However somewhere deep inside I feel that 401 is more correct. I am also little afraid if the 302 cannot be misinterpreted by search engines. So how do...

How are different TCP connections in HTTP requests identified?

Hello. From what I understand, each HTTP request uses its own TCP connection (please correct me if i'm wrong). So, let's say that there are two current connections to the same server. For example, client side javascript code triggering a couple of AJAX POST requests using the XMLHttpRequest object, one right after the other, before ge...

Http and file uploading - How does it really work (under the hood)

Ok this may seem like a bit of a noob question but one many Web developers I know dont have a full understanding of. Basically how does a file uploading from a web page file input box to a webserver (hosting a .net site for example) with a FileUpload control's uploaded event? My understanding was that a post was made to the server requ...

Difference Betweeen SIP and HTTP Response 407 code ?

What is the difference between SIP response code 407 and HTTP response code 407 (Proxy Authentication Required)? ...