In the web app I'm building with ruby on rails I have a form that the user submits with some basic data. The data is retrieved in the controller and more information that needs to remain private is added. Then I need to send a post request to an external website with all of the combined data from the controller. What is the best way to...
Is there a way to edit the Request.Form before the action method binds to the parameters? I already have a reflection call to enable editing of Request.Form. I just can't find a point of extensibilty where I can alter it before binding occurs.
UPDATE: So it looks like I was editing the Request.Form and didn't realize it. I was verif...
Hi,
I have a many to many relationship table whith some datas in the jointing base
a basic version of my model look like:
class FooLine(models.Model):
name = models.CharField(max_length=255)
class FooCol(models.Model):
name = models.CharField(max_length=255)
class FooVal(models.Model):
value = models.CharField(max_length...
Hi,
suppose we have the following PHP page "index.php":
<?
if (!isset($_GET['req'])) $_GET['req'] = "null";
echo $_SERVER['REQUEST_URI'] . "<br>" . $_GET['req'];
?>
and the following ".htaccess" file:
RewriteRule ^2.php$ index.php?req=%{REQUEST_URI}
RewriteRule ^1.php$ 2.php
Now, let's access "index.php". We get this:
/index.php
n...
Hello! How can I make a post request to another php page withing a php script? I have one front end computer as the html page server, but when the user clicks a button, I want a backend server to do the processing and then send the information back to the front end server to show the user. I was saying that I can have a php page on the b...
Hi, I need to send an HTTPS request without using LWP::UserAgent or HTTP::request? What is another method of doing so? This is the request I need to send:
POST https://payflowpro.paypal.com/
Connection: close
Host: payflowpro.paypal.com
Content-Length: 181
Content-Type: text/namevalue
X-VPS-CLIENT-TIMEOUT: 30
X-VPS-REQUEST-ID: 124940351...
I have a HttpHandler that is called whenever an image extension is accessed. This is what I have in the HttpHandler as a simple test:
public void ProcessRequest(HttpContext context)
{
context.Response.Write(context.Request.Url.ToString());
context.Response.End();
}
According to Firebug, the first time the page is refreshed...
I have a select form, with a few option values, and I want the page to reload when someone selects another option value, without having a submit button that is. Just reload the page when someone change the value. I would like to skip fetching the data with an AJAX request. So the idea here is to call a HTTP-request when the option value ...
Is there any sane way to make a HTTP request asynchronously in PHP without throwing out the response? I.e., something similar to AJAX - the PHP script initiates the request, does it's own thing and later, when the response is received, a callback function/method or another script handles the response.
One approach has crossed my mind - ...
ASP .NET is allowed
Storing the values in hidden input fields is allowed
Query String is not allowed
POST request is not allowed
It is possible to store JS variables between GET requests ?
I want to reinitialize them on the client using ClientScript.RegisterStartupScript
Can I use cookies for this ?
Are there other posibilities?
Where...
I have a php script PayPal eStores/dl_paycart but it has PayPal eStores "settings.php" Security Bypass Vulnerability
I would like to know if I can prevent direct access to a php include file.
Would this help?
defined( '_paycart' ) or die( 'Access to this directory is not permitted' );
Thank you
...
I'm using Zend Framework 1.8/1.9's Zend_Application and the resource system to initilize a bunch of resources. I would like to only load certain .ini files based on the module being requested – for example, loading "help.ini" if (and only if) the CMS module is requested ("/cms"). Trouble is, I'm not sure how to access the request object ...
Hey,
I have a model Book which can be added to user's Favorites. So I defined 2 classes:
class Book(models.Model):
name = models.CharField(max_length = 40)
class UserFavorite(models.Model):
book = models.ForeignKey(Book)
user = models.ForeignKey(User)
Now I'd like to show on the main page popular books with an icon eith...
How can I increase the number of threads/concurrent requests per working process on IIS7?
I don't want to increase the number of processes to create a web garden (for now).
...
How do I load an external http xml request with jquery?
Below is a url when pasted into a web browser like firefox, an xml document is shown.
This is for the CPanel XML API.
http://hostingz.org:2086/xml-api/createacct?username=WeAreWatching&plan=hostingz%5FFH5&ip=n&cpmod=x3&password=changeme&contact email=contact.w...
Hi
I'm new to RESTful web services. I've created a RESTful web service. I need to wrap the response and requests. The contract is
[WebGet(ResponseFormat = WebMessageFormat.Xml,
UriTemplate = "/vacancies/{ID}",
BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Xml)]
[OperationContract]
DataTable GetVacancyInXm...
Is it possible to disable request validation for HttpHandlers?
A bit of background - I've got an ASP.NET web application using an HttpHandler to receive the payment response from WorldPay. The IIS logs show that the handler is being called correctly from WorldPay, but the code inside the handler is never called.
If I create a physical...
I'm looking for some kind of documentation that specifies how much time each browser (IE6/IE7/FF2/FF3, etc) will wait on a request before it just gives up and times out.
I haven't had any luck trying to get this.
Any pointers?
Thanks!
Daniel
...
According to php manual nor php://input neither $HTTP_RAW_POST_DATA work with multipart/form-data POST-requests.
"php://input allows you to read raw POST data. It is a less memory intensive alternative to $HTTP_RAW_POST_DATA and does not need any special php.ini directives. php://input is not available with enctype="multipart/form-data"...
I what to record all my website searches with google analytics but the problem is my search links look like this
**www.mywebsite.com/search/category/your+query+here**
From what i found out i must give GA the query parameter (mywebsite.com/search.php?q=your+query+here) but i have none (and don't want any).
Is there a way to rewrite t...