request

WCF Service with Binary Data

I have a unique problem and I would like the capability to process an incoming HTTP POST request that contains arbitrary binary data. I can currently process this data using a standard ASP.NET Page handler or in an ASP web service, but I want to know if its possible to processing INCOMING binary data in a WCF service? Can I drill down ...

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

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

Logging raw HTTP request/response in ASP.NET MVC & IIS7

I'm writing a web service (using ASP.NET MVC) and for support purposes we'd like to be able to log the requests and response in as close as possible to the raw, on-the-wire format (i.e including HTTP method, path, all headers, and the body) into a database. What I'm not sure of is how to get hold of this data in the least 'mangled' way...

How to get JSON back from HTTP POST Request (to another domain)

I'm trying to use the API on a website, here's the part of the manual: Authenticated Sessions (taken from here) To create an authenticated session, you need to request an authToken from the '/auth' API resource. URL: http://stage.amee.com/auth (this is not my domain) Method: POST Request format: application/x-www-form-urlencoded Resp...

Java Servlet: pass a request back to default processing.

Hi there, I want a Servlet to handle requests to files depending on prefix and extension, e.g. prefix_*.xml Since mapping on beginning AND end of request path is not possible, I have mapped all .xml requests to my Servlet. The question now is: how can I drop out of my servlet for XML files not starting with "prefix", so that the reques...

Django: Access request.session from backend.get_user

Hi, first of all: this is not the same as this. The ModelBackend has no request member. I want to access the session of the current user without access to the global request object or his/her session ID. Why? I wrote my own authentication backend, extending ModelBackend. In that I have the function get_user (self, user_id), that gets ...

How can I get the URL and Querystring? vb.net

I am refactoring some legacy code. The app was not using querystrings. The previous developer was hard coding some variables that the app uses in other places. Like this using VB.NET so.Cpage = "ContractChange.aspx" My question is can I programatically set this value and include the current querystring? I want so.Cpage to be something...

PHP - Get page from external server.

I want to pass a function a string, which takes that string tacks it onto url. Then goes to that url and then returns the page to my server so I can manipulate it with JS. Any Ideas would be much appreciated. cheers. ...

Java: String representation of just the host, scheme, possibly port from servlet request

I work with different servers and configurations. What is the best java code approach for getting the scheme://host:[port if it is not port 80]. Here is some code I have used, but don't know if this is the best approach. (this is pseudo code) HttpServletRequest == request String serverName = request.getServerName().toLowerCase(); Str...

Is there a php package I can plugin to manage program requests?

Hi everybody, I'm just wondering what do you use for managing visitor requests on your website? Basically, I'm wanting people who use my program to be able to ask for requests, or submit a bug and for people to be able to see those things and vote them up in priority. ideally this program is lightweight... I've come across programs l...

GET var not working properly? Example inside

This is hurting my head. In a func i haave the code below. What is hurting my head is the fact i can se &id= in my RawUrl and it the value it should hold meanwhile req["id"] in the if statement returns null var req = HttpContext.Current.Request; string u = req.RawUrl; // --> /pstcm&id=5653999025705172077 d = null; if (re...

Creating a SOAP Request with ASP.Net 2.0

Hi I am talking to a technical contact at the Server Website who expects me to be using Visual Studio while I just want to hand write script. See below for the SOAP request I need to generate. (I have replaced the actual URL with a dummy one) . I am pretty new to ASP and SOAP as you might guess and I have tried to Google an example scri...

Best way to handle request variables in Django

I have a form 'in the wild' that takes many different variables - which may or may not be populated. try: app_version = request.REQUEST["appVersion"] except: app_version = '' try: app_name = request.REQUEST["appName"] except: app_name = '' try: app_code_name = request.REQUES...

Finding File data from POST in C#

This is probably something blatantly obvious that I'm just missing. Help me, SO! I'm trying to access file data submitted via POST from a web form (not the built in C# ones though.) I have no idea how to do this, and MSDN is singularly unhelpful in this matter. Here's the three things I've tried so far: Request["file"]; Request.Form["...

HttpHandlers and HttpHandlerFactories.

I would like to route incoming requests for different resources, some returning files such as css, others returning responses generated by the server, and others being redirected to aspx pages for AJAX functionality. The current configuration uses an HttpModule to remap all requests to one handler, where urls are parsed and dispatched, ...

Designing a generic servlet which handles request dispatching

Hi! I have a design question :) I want to have multiple servlets but I dont want to configure a new servlet with a new name each time and extend the HttpServlet. I was thinking of having a generic servlet which dispatches different parameters to different specific classes that are actually handling the request. Ex: theese two calls w...

HttpModule/HttpApplication testing whether url is a request for a file

Hi, Within a HttpModule I would like to check whether the url ends with a file: ie. www.example.com/images/images.css and what the file extension is ie. css or js In the Begin_Request event handler, using the Url property of the Request object nested in the HttpApplication, I am currently cutting of the file extension using String op...

Access/use the same object during a request - asp.net

Hello, i have a HttpModule that creates an CommunityPrincipal (implements IPrincipal interface) object on every request. I want to somehow store the object for every request soo i can get it whenever i need it without having to do a cast or create it again. Basically i want to mimic the way the FormsAuthenticationModule works. It assig...

How often is the Silverlight Access policy accessed?

Hi As you may well know, it is required to host an access policy (clientaccesspolicy.xml) on your web server if you want SL apps to perform HTTP requests, or you need to host an access server on port 943 for socket connections. My app makes many short requests and latency is important. I want to know if this access policy file is acce...