post

Turning off multidimensional arrays via POST in PHP

Is there a way to turn off the PHP functionality for Submitting a multidimensional array via POST with php? So that submission of <input type="text" name="variable[0][1]" value="..." /> produces a $_POST like so... array ( ["variable[0][1]"] => "...", ) NOT like so: array ( ["variable"] => array( [0...

cURL how post this form correctly ?

I have problem i`m trying post data with php and cURL but that not working. How should looks correctly code if form is secure by random session id in input value, and have pieces of posting (stage ) <form name='p' method='post' action='/pl/Register.php'> <input type='hidden' name='sid' value='wa12891300kv1283056988...

Receiving HTTP request params in Lift

I'm a Lift newbie and I can't digest it's HTTP request/response cycle yet. Handling REST is thoroughly explained in Lift docs but what I'm looking for is much simpler: how do I access HTTP request body/params in my web service (in Scala code of course) ? ...

Posting a list of objects trough json to actionMethod in asp.net mvc

Seems there have been some talk about this issue before, but i will post this anyway.. Public Function test(ByVal val As List(Of TestObj)) As ActionResult For Each o In val Next End Function Class TestObj Property id As Integer Property name As String End Class When trying to call this function trough jQuery's post m...

How to post a custom user defined object to a url?

Hi all, MyObject myobject= new MyObject(); myobject.name="Test"; myobject.address="test"; myobject.contactno=1234; string url = "http://www.myurl.com/Key/1234?" + myobject; WebRequest myRequest = WebRequest.Create(url); WebResponse myResponse = myRequest.GetResponse(); myResponse.Close(); Now the above doesnt work but if I try to hit...

PHP form will not post.

I have just implemented mysql_real_escape_string() and now my script won't write to the DB. Everything worked fine before adding mysql_real_escape_string(): Any ideas?? $name = mysql_real_escape_string($_POST['name']); $description = mysql_real_escape_string($_POST['description']); $custid = mysql_real_escape_string($_SESSION['custome...

Why isn't apply_filter('the_content') outputting anything?

I've tried so many combinations of php to get wordpress to output $post->post_content as formatted text (as opposed to the raw formatting that echo $post->post_content gives me. This combination seems to be the most promising, but it isn't outputting anything. Any ideas? (it's this line: <?php $content = apply_filters('the_content', $s-...

HTTPService & MySQL & PHP

I can't seem to post needed information to my database, here's what I've got: <mx:HTTPService id="someService" url="http://name.domain/postPHP.php" method="POST"> <s:request xmlns=""> <name>{name.text}</name> <score>{score.text}</score> </s:request> </mx:HTTPService> And of course a button to send(); P...

Make an AJAX call to a php file --> then quit browser --> will the php file still run completely?

If a user clicks a button that will make an ajax post call to a php file, then navigates away from the website or closes the window, will the php file run completely until it finishes? i want the file to download stuff to my server and post a bunch of information into a mysql database. This could take a minute or two. But i want the tas...

Net::HTTP POST with XML Payload and some URL Parameters

Hey guys, Just a quick question, when I do request = Net::HTTP::Post.new(path) Can I do path = '/api/v1/baskets?apiKey=' + api_key + '&sig=' + sig + '&time=' + time Where api_key sig and time are some string or do I need to do path = '/api/v1/baskets' request.set_form_data({'apiKey' => api_key, 'sig' => sig, 'time' => time}) ...

POSTing XML with non-ASCII characters

I'm trying to patch RestSharp for it to be able to POST XMLs with non-ASCII characters as POST request body. Here's how it gets written: private void WriteRequestBody(HttpWebRequest webRequest) { if (HasBody) { webRequest.ContentLength = RequestBody.Length; var requestStream = webRequest.GetRequestStream(); ...

C# POST and be transfered to another site (https)

Hi! I am supposed to post some data to a site, using C#. I could post by just using a formular and simple html code. But I do not want any user to be able to look at the source code. My basic code is: WebRequest request = WebRequest.Create("https://blabla.bla"); request.ContentType = "application/x-www-form-urlencoded...

Configure IIS 6 or 7 to Permit POST Requests on Static Content?

I have a set of simple HTML pages that I'm using for a Facebook application, hosted on IIS (6, most likely, but possibly 7. My client is irritatingly withholding on details). For reasons passing understanding, Facebook must make POST requests when it tries to load a Pages tab. The POST request goes to a static .htm file on the site whic...

UIImage uploading using NSMutable request

I need to POST a request. The request has 3 parameters, 'email_id' , 'location' and 'image_data'. The value for 'image_data' contains NSData jpeg representation of a UIImage. The request must be submitted using a content type of multipart/form-data. How can I create the NSMutableRequest for posting this request? How should I set the boun...

php curl adding slashes to xml attributes...

hello there. trying to post some xml with curl but it keeps adding slashes to "s. I'm sending it to a server i don't hav access so cant encode/decode... $xmlToPost = '<PurchaseItems DISCOUNT="0" NETLINEVAL="0" PACK_CODE="0" VAT="0" PurchaseOrderNumber="'.$_POST['txn_id'].'">'; // just a snippet! $ch = curl_init(); curl_setopt($ch, CU...

PHP read each line

I have a <textfield> ($_POST['list']). How can I get value of each line to an array key? Example: <textfield name="list">Burnett River: named by James Burnett, explorer Campaspe River: named for Campaspe, a mistress of Alexander the Great Cooper Creek: named for Charles Cooper, Chief Justice of South Australia 1856-1861 Daintree River...

Maintain View State After POST

I am creating a site that utilizes the jQuery UI tabs. Whenever the user flips between the tabs, the tab they just left is posted back to the server in order to save the state. One of the tabs in particular is a bit complicated in that, if I select a particular data option, other options need to be disabled. However, because of the POST...

How to tag a friend in any Post generated by a facebook application ?

Dear all: When we update status in facebook, we can tag a friend in it by issuing a @ symbol and typing the friends name. Similar to this, I want to tag some friend in a post generated by my facebook application. I have searched in the facebook GRAPH API for the solution but couldn't find it. I have seen some application doing this. Ca...

Posting with PHP and Curl, deep array

I'm trying to post via curl, I've been using the same code over and over again with no problem but now I need to be able to use an array for posts (i'm not sure if there's a proper term for that?). I should clarify that it's specifically a file i'm trying to post, but I can't get it working with a string either so I don't think it's too...

Where is the JSON Results from my jQuery AJAX POST Call?

I have this code setup in a web page. <div id="gridResults"> </div> <script type="text/ecmascript"> jQuery.ajax({ url: "http://localhost:6002/AggregateServices.svc/incident/10", type: "POST", async: true, success: function(json) { var table = jQuery('<table />'...