request

Potentially dangerous Request.Form value - Exception

Hi, today I receive multiple (50->*) e-mails regarding: A potentially dangerous Request.Form value was detected from the client (ctl00$Content$InputStreet="OzgYPY <a href="http://effe..."). and A potentially dangerous Request.Form value was detected from the client (ctl00$Content$InputStreet="GVdtWm <a href="http://mxif..."). a...

Getting server name in ContextLoaderListener

My listener is filling Cache (Terracota) and if something goes wrong at application start, ExceptionInInitializerError is thrown. I would like to get server name (like on HttpServletRequest - getServerName()) to know where this happened. How can I come to this information?? import javax.servlet.ServletContextEvent; import net.f.core.s...

Rails - RESTful Routing - Add a POST for Member i.e(tips/6)

Hello there, I'm trying to create some nice RESTful structure for my app in rails but now I'm stuck on a conception that unfortunately I'm not sure if its correct, but if someone could help me on this it would be very well appreciated. If noticed that for RESTful routes we have (the uncommented ones) collection :index => 'GET' ...

twitpic API not connecting (multipart/form-data) objective-c

I've put together this code from lots of research. Information on the twitpic API is here: http://twitpic.com/api.do#uploadAndPost Through debugging i can tell that the dictionary is good, and that it gets through all the methods, the request gets submitted, but then the NSLog method returns <>. I'm not sure where I could be goin...

PHP SoapClient request

I'm trying to send a SOAP request to a newsletter service using this WSDL: dev-service.go.mayoris.com/wcf/SubscriptionService.wsdl?wsdl Here's my PHP: $client = new SoapClient($wsdl_url, array( 'login' => 'myusername', 'password' => 'mypassword', 'trace' => true )); $client->AddSubscriber( new SoapParam('MyFirstName',...

Is it possible to send a http request only to get the last modified time?

Instead of the file itself? EDIT Best with a demo in PHP? ...

Can't get JSF input field value on JAVA backend

Hello. I have following UI part on JSF - it's simple search form with input field and submit: <h:form> <h:commandButton action="#{operation.found}" value="#{msg.search}" /> <h:inputText name="searchParam"/> </h:form> And correspondingly, on backend, i attempt to get value of input field next way: public List<Store> getFound() ...

iPhone XMLRequest

Hello, I have an API which sends an XML Request to a server: <?xml version="1.0" encoding="UTF-8"?> <request type="handle" action="update"> <userdata> <username>YourUsername</username> <password>YourPassword</password> </userdata> <handledata type="PERSON" id="HandleId"> <name>Mustermann</name> <firstname>Max</firstname> <organization>F...

How to send a HTTP POST Request in Delphi using WinInet api.

Hello, I am trying to make HTTP Requests from Delphi using the WinInet functions. So far I have: function request:string; var hNet,hURL,hRequest: HINTERNET; begin hNet := InternetOpen(PChar('User Agent'),INTERNET_OPEN_TYPE_PRECONFIG or INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0); if Assigned(hNet) then begin try hURL := I...

The values of a form can not be passed on to the action file or the action file can not get the values of the fields in the form

This is the PHP code: $html=<<<eod <div>Your current account balance is <span style="color:red">$$balance</span></div><br/> <form id="digitalchange" action="digitalchange.php?" action="post"> <input type="hidden" name="tid" value=$announcementid /> <table rules=all FRAME=BOX><tr><td>Balance:<span class="price">$balance</span></td><td>Cu...

HTTP Request (POST) field size limit & Request.BinaryRead in JSPs

Hi, First off my Java is beyond rusty and I've never done JSPs or servlets, but I'm trying to help someone else solve a problem. A form rendered by JavaScript is posting back to a JSP. Some of the fields in this form are over 100KB in size. However when the form field is being retrieved on the JSP side the value of the field is being t...

Is there a way to get raw http request stream from Java servlet handler?

I am trying to put some logging to capture the raw http request coming to my application. My Java code is inside a SpringMVC controller. I have access to the "HttpServletRequest" object. But I could not find a way to get the raw http request stream out of it. There is a reader but only reads the post content. What I want is the whole she...

any harm in put django request object in thread local dict?

I have some custom render_to_response methods which now needs request object, I could pass request to each one of them but instead I am saving request object in a middleware to thread local space and accessing it elsewhere, can it affect me anyway? ...

WCF + REST: Where is the request data?

I'm currently developing a WCF RESTful service. Within the validation of the POST data, I am throwing exceptions if the request XML does not conform to our business rules. The goal is to send an e-mail to the appropriate staff if a request comes in that considered invalid. But, along with the incoming request headers, method and URI, ...

Dealing with URLs in Django

Hey all! So, basically what I'm trying to do is a hockey pool application, and there are a ton of ways I should be able to filter to view the data. For example, filter by free agent, goals, assists, position, etc. I'm planning on doing this with a bunch of query strings, but I'm not sure what the best approach would be to pass along t...

Issue with Django form when submitted using jQuery form plugin

hi, when submitting my form using jQuery form plugin, the request received by the target view is different than that received when the form is submitted in the standard way (with no javascript), and my Django template does not render as expected. When submitted in the standard way, the template renders the form errors (the "form.[field_...

HTTP GET Request, ASP - I'm lost!

Hi, Using VBScript with ASP I am trying to set up an HTTP GET Request which will visit a page which in turn generates a line of ASCII (non-HTML). I then want to extrapolate that ASCII line which will have 4 values delimited by semicolons back into 4 variables in my original ASP page so that I can take those values and do something with ...

How to check for request time out , is there a notification I can set ?

Hello all I want to check for whether the request has timed out after some period. I know NSNotifiactionCenter ,but don't know how to set the request time out notification for it. thanks. ...

Orchestration tool for modeling web request processing

Hello. BizTalk has an orchestration tool for the purpose of defining business processes. I have always wondered that we can likewise model even simpler things. For example, web request processing can be modeled as a process because it has a pattern and various business objects (or say services) can participate. I am curious to know about...

python http handler

I want something like BaseHTTPRequestHandler, except that I don't want it to bind to any sockets; I want to handle the raw HTTP data to and from it myself. Is there a good way that I can do this in Python? To Clarify, I want a class that receives raw TCP data from Python (NOT a socket), processes it and returns TCP data as a response (...