I need to accept form data to a WCF-based service. Here's the interface:
[OperationContract]
[WebInvoke(UriTemplate = "lead/inff",
BodyStyle = WebMessageBodyStyle.WrappedRequest)]
int Inff(Stream input);
Here's the implementation (sample - no error handling and other safeguards):
public int Inff(Stream input)
{
StreamReader ...
Several of my ajax applications in the past have used GET request but now I'm starting to use POST request instead. POST requests seem to be slightly more secure and definitely more url friendly/pretty. Thus, i'm wondering if there is any reason why I should use GET request at all.
...
Hi
I am looking for a windows application which will receive SMS via a GSM modem. The application needs to forward the 'raw' PDU via HTTP Post to a page on our server. The app needs to deal receive a confirmation reciept from our server and deal with undelivered PDU strings.
I would be happy for someone to quote for building this stra...
I'm writing my first Windows CE app using the .NET Compact Framework v3.5.
I need the app to be able to do an HTTP POST to a URL.
It appears that the .NET CF does not have System.Web.
So, I could use some guidence on how to accomplish and HTTP Posts using the .Net CF.
Thanks,
Greg
...
My question is similar to Engram's here, but my question goes a bit further. The way i intend it to work is I have a textbox asking how many entries a user is going to make. After they input the number, I need to create that many more textboxes to allow for entries (and then repeat the same process with those textboxes, but baby steps ...
Hi,
I want to POST an URL using CURL and php.
There is a big form on webpage and I don't want to manually copy all the variables and put it in my POST request.
I am guessing there has to be a way to serialize the form automatically (using DOM or something) and then just change whatever values I need.
I could not google my way out of ...
When analyzing traffic with a packet sniffer, we are seeing an http response from a weblogic server prior to the completion of the http post to that server.
In this case, the jsp page on the server is basically a static page, no logic to do anything with the contents of the post at this time.
But why would the server send the response ...
I want to test the security of a website of mine and I would love to have an application that is able to send POST data, if it's even possible..
Thanks
...
Hey guys
In ASP.NET webforms and ASP 3 (Classic ASP), I came across an issue whereby naming your form submit button "submit" would "break things". Below is the rendered HTML:
<input type="submit" name="Submit" value="Submit" id="Submit" />
I say "break things" because I'm not sure exactly why or what happened. But the symptoms usuall...
I'm looking for a good example that shows how to handle (in the controller) a POST onchange (of a input["text"] for example)
Currently when I set my onchange = form[0].submit(); and I watch the action hit the controller, the HTTP verb is still GET for some odd reason. But when I view source the form on the page has the method="POST" .....
Actually, it's gotten so messy that I'm not even sure curl is the culprit. So, here's the php:
$creds = array(
'pw' => "xxxx",
'login' => "user"
);
$login_url = "https://www.example.net/login-form"; //action value in real form.
$loginpage = curl_init();
curl_setopt($loginpage, CURLOPT_HEADER, 1);
curl_setopt($loginpage, C...
Hi,
I want to post some xml to an external server and have been told that:
"The transmission protocol used is https (SSL). This requires that your initiating server has a valid digital certificate."
Where do I get one of these? I have a Thwate Personal Email Certificate but not sure if that would do?
Thanks,
...
HI I'm tring to send some headers in my PHP script such as
$headers[] = "BATCH_TYPE: XML_SINGLE";
$headers[] = "VENDOR_ID: 56309";
But they are being received as:
Batch-Type
Vendor-ID
..not as they were intended or required - which is causing me problems.
Anyone know why or how to sort?
Thanks,
<?php
function httpsPost($Url, $...
Hi :)
Basically I have this code below & the last step FinalStepGetReportData() throws an exception on return (HttpWebResponse)request.GetResponse(); if fiddler is switched off?
All else works when Fiddler is OFF except this last step. When I turn Fiddler on the final step works ?
Any ideas? I am banging my head against the wall.
Th...
One HTTP POST request/response transaction consists of
Upload Request Ηeaders
Upload Request Βody
Download Response Headers
Download Response Body
I'm looking in .net to measure the time it takes for no 4 above (response body) alone.
Is there an event sink or clever use of .net api (marking that the POST headers...
Here is my ajax call:
response = $.ajax({
type: "POST",
url: "/Row/getRowName",
dataType: "json",
data:({ currRow : rowName, offset : 5 }),
error:function(request){alert(request.statusText)},
success:function(result){alert(result)}
}).responseText;
I get I...
Here's my method
[AcceptVerbs(HttpVerbs.Post)]
public void SaveImage(FormCollection formValues)
{
byte[] contents = Convert.FromBase64String(Request.Form["file"]);
System.IO.File.WriteAllBytes(Server.MapPath(Request.Form["name"]), contents);
}
It is getting posted to from this actionscript method:
...
Hi,
Here are a few of the things I need to know:
What do you put for the URLRequest? It's confusing me a bit since Asp.Net MVC is methods and not pages
How do you assign parameters for the POST?
How to you execute the URLRequest to complete the Http Post?
Any information on how to do a Post from Flash to an Asp.Net MVC Application w...
I'm setting up my site to receive info from people via text message. The way it works is they text a number, that service then sends an HTTP POST to a url I specify. I've heard that .asmx files are better than .aspx files because they don't go through the whole page lifecycle. However, I don't really understand how to get a .asmx file ru...
I couldn't find in the jQuery document if any of its AJAX methods SAFELY evaluates a JSON response to a $.post.
...