request

Measure size of Web Requests and Responses

I am looking for a way to measure the size of web requests and responses that I make in my browser. I would need a way to measure regular requests, as well as ajax requests. I am trying to improve Ajax performance by decreasing request and response size, and I need some way to benchmark this on the client end as well as measure my progre...

Is there a URL builder that supports request paramater concatenation as well?

I want to achieve something like the following: UrlBuilder ub = new UrlBuilder("http://www.google.com/search"); ub.Parameters.Add("q","request"); ub.Parameters.Add("sourceid","ie8"); string uri = ub.ToString(); //http://www.google.com/search?q=request&sourceid=ie8 Is there anything in .NET, or I will have to create my own? ...

ASP.NET request lifecycle confusion

I am new to C# and .Net and am coming from a Java background. I am trying to get my head around the .NET way of doing web applications and am not having much luck. I want to build an application to handle requests urls and write responses that return images. Having only used Java servlets in the web application field I am after some goo...

System.Net.HttpWebRequest in classic asp?

I've got a classic asp app that needs to post XML to a payment engine, and the reference code uses a System.Net.HttpWebRequest object (asp.net). Is there an equivalent in Classic ASP that I could use to post the XML? ...

New line characters get submitted differently

Hi, I was wondering if somebody could shed some light on this browser behaviour: I have a form with a textarea that is submitted to to the server either via XHR (using jQuery, I've also tried with plain XMLHttpRequest just to rule jQuery out and the result is the same) or the "old fashioned" way via form submit. In both cases method="P...

Can I find out what domain made a request that triggered an HttpModule?

How do I find out from within an HttpModule what domain made a particular request? Say I only want to allow site1.com and site2.com to use images from my server, how do I check that it is them making the request? ...

How can I get HttpServletRequest when in an HttpSessionListener?

How can I access request headers from a SessionListener? I need to set a timeout on the current session when it is created. The timeout needs to vary based on a header in the HttpServletRequest. I already have a SessionListener (implements HttpSessionListener) that logs the creation and destruction of new sessions, and it seems to be th...

Apache Commons fileUpload problem in java servlet

Hi. I tried doing this with Apache Commons FileUpload: protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException { PrintWriter out = null; try { response.setContentType("text/html;charset=UTF-8"); //MultipartFormDataRequest dataRequest = new MultipartFormD...

What is the difference between referring to image file in src of img tag and referring to embedded image directly in image tag?

Is there any difference between using <img src=pathto.png /> and <img src=data:image/png;base64,encodedpngdata... /> from the perspective of the server? In the case of src=pathto.png will the server just encode the image and send it to the browser? ...

ASP.Net MVC: Request variables through Routes and View method

Basically if I wanted to make something a search page with paging I would need a url like: /Topics/Index?search=hi&page=1 What I can't seem to figure out is how to: A) Set a default route with no search and page 1 /Topics/Index?page=1 or even /Topics/Index?search=&page=1 B) use the View method to do the same I do see that if ...

Extracting IP from request in Python

I have a Pythonic HTTP server that is supposed to determine client's IP. How do I do that in Python? Is there any way to get the request headers and extract it from there? PS: I'm using WebPy. ...

request variables in grails

EDIT: based on feedback, erased original Q. completely and reposting in better language I wish to access a request or params variable and pass it between the controller and the gsp. i understand that the params object contains everything that a querystring has. All the examples I see are all Model driven. I have looked up docs online a...

Parsing POST from Gnip.com via PHP

Hello! I've set up a filter at Gnip.com. In the field "POST URL" I've typed in my script URL. The URL is correct since Gnip.com really calls it. But when the script is called, I don't get any data. I've tried to parse $_GET and $_POST but both are empty arrays. getallheaders() gives me some data but no XML. How do I get the XML sent by ...

Convert Textview text to post request parameters -- iphone development

I want to pass my textview content to a server via post request but I guess I have a problem with encoding. Do | have to convert say blanks to + or %20 by hand or is there a library supported by cocoa or any other 3rd party? Is this sth trivial ? I got stuck with this simple step for hours! :) ...

if-modified-since vs if-none-match

Hi, What could be the difference between if-modified-since and if-none-match? I have a feeling that if-none-match is used for files whereas if-modified-since is used for pages? ...

WCF request/response package size

Hello everyone, I am wondering if there are configurable settings for restriction of the maximum request/respose data package size for WCF? I am using VSTS 2008 + WCF 3.5. I am self-host WCF service as a Windows Service. thanks in advance, George ...

Getting the current request in rails from a file in lib/

I've put all of my user-authentication code in one place, namely lib/auth.rb. It looks like this: lib/auth.rb module Admin def do_i_have_permission_to?(permission) # Code to check all of this goes here end end I include this module as part of the application helper, so these functions are available in all the views: appli...

What is the disadvantage of DWR?

While using DWR in a intranet, will disadvantages like perfomance or security issues occur? Direct web remoting is a tool which uses Ajax request to contact a server from a js file. ...

Are cookies sent with image requests?

Hi, If I have a site (e.g. foo.com) and on the home page of foo.com, there is a image request where the src=bar.com..., will the cookies on the bar.com domain be sent to the bar.com servers? Thanks! ...

Bittorrent tracker request

Using a torrent file from http://torrent.ubuntu.com:6969/ I am calculating its hash which matches with the hash on the page. Then i make a request to the tracker. Like http://torrent.ubuntu.com:6969/announce?info_hash=9a81333c1b16e4a83c10f3052c1590aadf5e2e20 But i get d14:failure reason63:Requested download is not authorized...