post

Should Links ever have statefull side effects

Hi all, I have made life difficult for the HTML / CSS developers by making any interaction that has a side effect into a button and NOT a hyperlink. For example I changed the "Clear Basket" in a shopping site from a link to a button. On the premise that any action that has a side effect should be a button not a hyperlink. (even tho a ...

Setting a asp.net 2.0 webmethod as a GET method

But default you have to issue an HTTP POST to any web method in an asp.net 2.0 web service. How do u call a web method with HTTP GET alone. In some cases I'd also want to pass arguments to an HTTP GET method. Is this possible in the context of web services? ...

PHP SOAP fread() dynamic POST size

Looking to read the file size of the SOAP POST, any best practices? $data = fopen('php://input','rb'); $content = fread($data,5000); $dom = new DOMDocument(); $dom->loadXML($content); Would like the 5000 to be dynamic as each SOAP POST size will be different or does this matter? Using fread() would be great ...

Javascript form submital works in webkit, fails elsewhere

I've written this code to try and send a url as a post value to the same page. The code worked great in chrome and safari... but fails in FF3 and IE (the last one I could care less about, but I need it to work in firefox). In FF3 and IE it opens up a blank new tab. What should I know about the differences between the way webkit and the o...

Encoding "<" and ">" while sending XML via HTTP Post

Hi, I am sending an XML content via HTTP Post from Access VBA to Web Methods, using XMLHTTP object in MSXML. Here is the Code. Dim objXmlHttp As Object Set objXmlHttp = CreateObject("MSXML2.ServerXMLHTTP") objXmlHttp.Open "POST", webServicePath, False objXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" Dim...

Jquery POST combination with classic asp

Hello all, I have tried many ways of executing this but its not happening .. here is the deal .. I have data displayed in table rows, every row has its id representing id of the person I wanna delete. I use jquery to collect this id from row where my button is located, here is the code how I do that, its working I'm just writing so you c...

How to show a post right after posting like SO with PHP?

Currently I'm doing this in two steps: 1.post it to ask.php 2.after inserting it into database,use header("REFRESH: 0;URL=post.html") to jump to the result page But how to do it all in one step,say,like SO here? ...

How to post a form with many fields with jQuery?

Though $.ajax() can be used to do ajax things, I don't think its fit for posting values of a big form. How would you post a big form (many fields) without entering all them by hand? ...

Rails - Redundant RESTFUL Actions for map.resources? (new, create)

Hello there, I was wondering why when you create restful routes in rails with map.resources it generates actions for new, create, edit, update? Is there anything wrong in declaring just one action for create and update and do something like this? def create unless post? @user = User.new else redirect_to :action => 'index' ...

javascript with XMLHttpRequest's open method: using post and its parameters

Users of my website will, ideally, be sending a few hundred posts to a db server over the course of about an hour (basically its an online-experiment). The experiment is implemented in js, so I'm trying to use an XMLHttpRequest object to post the data the script collects. The thing I'm uncertain about is how to use the POST parameter. I...

HTTP Post fields are not received by PHP script

I feel stupid asking this question, but I've been wrestling with it for hours and I don't know where else to turn. I have a flash form that is making a POST request to a php script, and then displays the output of the said script. For the sake of simplicity, let's say this is the php script: echo 'Mail sent to: ' . $_POST['recipientEm...

Post file using ruby's Http class

I have been learning to fake posting forms using Ruby's Http class, but now I need to post a file (as in faking a form submission where one of the fields is input type="file"). Anyone know how to do this? NB It's not essential I use the Http class, just that I can post files. ...

Post with jQuery AJAX to ASP.NET MVC 1.0

I'm doing a jQuery AJAX post like this: var form = $("#formid"); form.submit(function() { $.ajax( { type: "POST", url: form.attr("action"), // points to NewClient data: form.serialize(), success: function(msg) { alert('ok ' + msg); }, error: function(req, status, err) { alert('err=' + er...

Send the whole Form data with delete click

Hi Guys, I have a Delete button on Edit Form Mode. I want to send the whole form data to the controller when this button is clicked in Edit mode. I have a ViewModel on View which has data in it and displayed to user with input fields. Now if user clicks Delete then this whole data needs to be sent to controller. This is my delete metho...

Flex: Send HTTP POST request with binary data in body

Hi everyone, I'm new to Flex and couldn't figure out yet how to send binary data to the server as the body of a POST request. The HTTPService component doesn't seem to support this. The FileReference doesn't seem to support setting the data via the Flex API. Unfortunately the answers to similar questions on stackoverflow.com haven't be...

Https POST from Php to C#

Hi, I have to make a post to a third party https url to get data procesed and sent back. And all I have as an example is this: $signature= foo_string; $data_to_post = json_dictionary; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $base_url); curl_setopt($ch, CURLOPT_USERPWD, "$user:$password"); curl_setopt($ch, CURLOPT_HTTPAUTH, CUR...

PHP display problems

I am pulling messages from mysql using PHP to be displayed on a specific page. Instead of displaying the title of the message in the designated title bar and the message in the designated body text box...there is no content displayed and its displaying the title in the url. What am I missing in my query? Or what is going on? ...

PHP display problems revisited

I am pulling messages from mysql using PHP to be displayed on a specific page. Instead of displaying the title of the message in the designated title bar and the message in the designated body text box...there is no content displayed and its displaying the title in the url. What am I missing in my query? Or what is going on? /*--Here is...

How to set a postvar's name in a httprequest?

I need to reach a webservice which respondss to the postvar "data". How do i set this name in c# with a httprequest... this is what i got: UTF8Encoding encoding = new UTF8Encoding(); byte[] data = encoding.GetBytes(postData); HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create...

How to post XML to an iframe with JavaScript

Basically I want to post XML (with Content-Type text/xml) to an URL and display the output directly in the browser. This has to be done in an iframe. Is it possible to post the XML to an iframe? In other words, can the Content-Type of the Post-Request be changed to text/xml? PHP4 is also available if necessary. The URL of the iframe-a...