http-post

Accepting form fields via HTTP Post in WCF

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

What are the advantages of using a GET request over a POST request?

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

Incoming SMS - redirect to server via HTTP

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

.Net Compact Framework 3.5 HTTP POST

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

Populating a form dynamically based on user input in ASP.Net MVC

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

serialize form to POST after getting content using CURL

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

Weblogic server: Why response sent prior to post completion

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

Are there Firefox extension (or any other browser) that allow to send arbitrary POST data to a webpage?

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

Why does naming your HTML form submit button "submit" break things?

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

How to handle an HTTP POST using MVC onchange of an input["text"]

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

curl sending GET instead of 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...

http post + digital certificate required.

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

HTTP Post headers, received differently from what's being sent

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

HTTPS C# Post Problem (with Fiddler)

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

.net How to measure time taken to download just the httpPost body excluding httpPost headers and upload data

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

What is wrong when I get "Internal Server Error" returned from a jquery $.ajax call on an ASP.NET MVC project?

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

Having troubles calling a Controller Post Method...

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

What is the proper way to do an http Post from Flash to an Asp.Net MVC Application?

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

Receive requests with a .asmx file or a .aspx file?

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

Will jQuery safely evaluate a JSON response to a HTTP POST?

I couldn't find in the jQuery document if any of its AJAX methods SAFELY evaluates a JSON response to a $.post. ...