I am just wondering how a web site posts information to an exe and how that exe grabs that information and outputs it using a template html file.
The code on the web side looks something like this:
<FORM ACTION="scripts/fetch.exe" METHOD=POST NAME=somename>
<INPUT TYPE=TEXT NAME="id" WIDTH=30>
<INPUT TYPE=SUBMIT NAME="nothing" VALUE="...
I am creating a website using PHP that makes use of a MySQL database and handles forms and variables from the URL. The variables are being using to dynamically construct SQL query strings. So i need a robust solution to make sure nobody is trying a SQL injection, etc.. A friend of mine has said that really i should only use stored proced...
I have a form that is posting a pretty long string (60k) that is highly compressible. I would like to ensure that the browser encodes the form data in a zip format to reduce the network bandwidth required, however I am not sure how to do that. Can someone point me in the right direction.
...
I am using a macro in outlook VBA to submit a file via POST to a URL:
Set http = New WinHttp.WinHttpRequest
http.Open "POST", UrlToPostTo, False 'True '
http.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
http.setRequestHeader "Content-Type", "multipart/for...
Hi,
I need to calculate total data transfer while transferring a fixed size data from client to server in TCP/IP. It includes connecting to the server, sending request,header, receiving response, receiving data etc.
More precisely, how to get total data transfer while using POST and GET method?
Is there any formula for that? Even a t...
The API, I'm trying to implement requires the upload of XML file, containing the commands.
The straightforward way to do this is to generate the content of the file, write it on the file system and upload it with curl to the web server.
What I'm trying to accomplish is to skip the writing part by using php's temp protocol handler. The ...
I'm going to be integrating with an existing application which will have an attached file
in its initial HTTP post request to our ASP.NET application.
I've built the logic to extract the file from HttpRequest.Files and even tested it using JMeter.
What I want to do is build a standalone ASP.NET page which can direct the user to the fir...
I have a form which you can post a file over to my server.
Is there a way, without using a custom HTTP handler, to intercept the start of the post and prevent it before the file is uploaded and bandwidth used up.
So for example, I could check an IP address and if it's blocked in my system I could stop the request before I waste 10MB of...
Ok - this is in continuation from my earlier question about sending an email using a php script. I'm now using PEAR to send the mail. The php script i use is the following one (successfull if executed alone): PHPEMail.php
<?php
require_once "Mail.php"; // Pear Mail.php
$from = "FromName <[email protected]>";
$to = $_POST["dest...
Hi,
I have this-
en.wikipedia.org/w/api.php?action=login&lgname=user&lgpassword=password
But it doesn't work because it is a get request. What would the the post request version of this?
Cheers!
...
I am trying to use javascript, without framework(prototype, jQuery,etc), to insert data passed from a html form to an mysql database. I have managed to get this working but, get a problem with some special characters commonly used in my language(æøå). utf-8 supports these characters, and everything works fine when I skip the javascript. ...
I'm trying to send a lot of data from a form using the $.post method in jQuery. I've used the serialize() function first to make all the form data into one long string which I will then explode serverside.
The weird thing is when I try and send it using $.post it appends the result of the serialize() to the URL as if I was sending it usi...
In order to preserve post data after utilizing the [Authorize] attribute on a controller method, which then redirects the user to a login page, which then upon successful authentication redirects the user to where they were intending to go -- how would this be done? The original form submission is not relayed by default. A response to a ...
I am still in the process of getting comfortable with doing things the REST way.
In my situation, client software will be interacting with a RESTful service. Rarely, the client will upload its entire database of entities (each entity serializes into a roughly 5kb chunk of xml).
Perhaps I'm wrong, but the proper RESTful strategy seem...
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?
...
I've been working on a php script to update mediawiki entries, however whenever I run it it doesn't seem to update the wiki at all and just returns the article page unedited.
I've included a section which logs into the wiki first and I've successfully read information off the wiki but I have not been able to update it.
Is there somethi...
Imagine a user has just posted data to your web application and you want to re-display the current page with a message about their success or failure. This gets complicated.
If the data is valid and the user is expecting html, you want to issue a redirect so that refreshing doesn't cause them to re-post. You want to redirect to the re...
Hi,
I'm looking for a PHP script that can accept an XML file via a POST, then send a response....
Does anyone have any code that could do this?
So far the only code I have is this but not sure about the response or if indeed I am even going in the right direction as XML characters are not saved correctly. Any ideas?
<?php
if ( $_SER...
I am writing a web server in C# and I'm trying to add support for PHP. I have it mostly working, except I don't know how to past GET and POST data to the PHP executable when i pass the file to it. I've been testing with GET since I haven't gotten to getting POST requests handled on the server, and I have the string of the arguments that ...
I am looking for a built-in utility method in .NET for constructing HTTP POST message body for the two common content types:
application/x-www-form-urlencoded
multipart/form-data
I'd rather use someone else's ready and tested implementation than roll my own, even though I realise it's not difficult to do so. However there doesn't see...