post

Amazing error in perl

i write this perl code : use HTTP::Request::Common qw(POST); use LWP::UserAgent; my $ua = LWP::UserAgent->new(); my $req = POST 'http://example.com', [ hfc /[pos]/ => 'yayaya' ]; $content = $ua->request($req)->as_string; but when i compile it i get this error : syntax error at C:\Documents and Settings\ysys\ya.pl line 5, near "/ =...

Twitter status update from C app

Inspired by Scripting Twitter with cURL, I'm trying to make a command line app in C, used to update my Twitter status. I'm not really sure how curl works in this case... I guess by appending the newly created status to the XML. My question is: how to implement POST in C (libcurl is not used)? Maybe just by using networking functions fr...

How to list items from unlimited $_POST variables like paypal?

Hi, I Want to receive items details using $_POST and list them like an invoice (exactly like paypal) So if i receive: item_name = Flowers item_description = Alicia Flowers Store item_quantity = 3 item_name1 = Twilight item_description1 = Main Library item_quantity1 = 1 item_name2 = GTA IV item_description2 = Rock Star item_quantity2 ...

script works, but the clicked radio isn't checked=checked jquery ajax POST

to see the error: http://jsfiddle.net/sEdGz/2/ //the script works, but the clicked radio isn't checked=checked //mysql and php works good $('#form1').live("click change", function() { .... <div class='divtoclick'>neu berechnen</div> <form id="form1" method="post" name="bestellformular"> <input value="101" name="flyer_anzahl" ty...

How to request from a different server URL using JavaScript

I need to send some of my data into another server. Actually to post into facebook. So here i already have an API which works by an URL. So if i set the parameters from the URL and if i try it in web browser it works. But when i try it as a AJAX call it do not work. (Because its not hosted in the same server as my web pagers are). Is t...

Figuring SQL QUERY for EACH ISSET ?

Hello guys I'm stucked in a point and I need your help. I want to change SQL QUERY for each $_GET parameters. I'm using this: <? if (isset($_GET['page']) ) { $pageno = $_GET['page']; } else { $pageno = 1; } // if $query = mysql_query("SELECT count(id) FROM m3_music_mp3"); $query_data = mysql_fetch_row($query); $numrows = $query_da...

Wordpress | Automatically repost entries to the start page by date

Hi, I'm looking for a solution to regularly show a post on the startpage. The way to archieve this is to update the last modification date of a post, which can be easily done using an SQL statement. Alas this skips the regular Wordpress update hooks such as "post new entries to twitter". So I'm looking for a PHP cronjob script to "emu...

form submit in a non secure page

I would like someone to answer this and if possible provide some reference links to back it up (if possible). Need to prove to someone its not secure. If I have a form with the post method on a non-secure page, but the action attribute is pointing to a secure URL, is the submitted form secure? ...

Simple Gmail login via non-webview / browser HTTPS POST

I am trying to build a very simple app, but it's turning out to be a much more difficult task than one could imagine. I need to use a simple User Interface , with the basic two text fields, UserName & PassWord (done), and once the login button is depressed, it logs into gmail (or any corporate Gmail account) via an https POST (I think ...

WCF REST service's POST request's input XML not getting validated

Hi, I am trying to consume a RESTFul WCF service's Method through a POST request. Following is Webservice's method signature [DataContract(Namespace = "")] public class CompositeType { bool boolValue = true; string stringValue = "Hello "; [DataMember] public string StringValue { ...

PHP: How to transport vars from php cmd (executing from shell) to PHP GET and POST Array?

Hi all, i have some scripts that need GET and POST values to start, and i wanna test them over shell. Is there some way to pass the values to that arrays to avoid using getenv() function? Thanks in advance! ...

Clear session variable after use

Is it possible to use a session variable, then unset it directly after? Example: //==== //Process Form if ($_POST['Submit']) { $update = $userSettings->update($_POST); //If there are form errors if (!$update) { //Load the errors into an array $errors = $update[1]; } else { //Set the session ...

how to make sure POST data comes from specific domain?

I have a page confirm_payment.php receiving POST data from other pages. How can I make sure this POST data comes only from one specific domain? I cannot rely on IP addresses as in my case this might change. I want to avoid "fake" submissions to my confirm_payment.php server side code. Without going into details this is to make sure th...

How to modify Wordpress Custom Post Type URL?

I observed that if I have a custom post type called article, the links become mysite/article/title-of-article-here. How do I make the links to have this pattern -- mysite/title-of-article-here? ...

pass value from and to servlet using HttpMessage

Hello all, I'm trying to send byte[] to a servlet and get the result back using O'Reilly HttpMessage. But I get a null pointer exception on retrieving. This is the code on the client app: URL url = null; try { url = new URL("http://localhost:8080/ImageFilter/imagefilter"); } catch (MalformedURLException e) { e.printStackTra...

Post js array to php @jquery @codeigniter

Hi, i'm trying to pass a javascript array to a php controller ( i'm using codeigniter ) with ajax post method. Data seems to be sent but $_POST['data'] is not known. This is the code : JAVASCRIPT: function update_order(){ var ordre_column1 = $('#column1').sortable('toArray'); var data = serialize(ordre_column1); $.post('../../controll...

How to use the "post" parameter with the Excel's 2003 hyperlink "follow(...)" method?

If you look at Excel's help for the Follow Method of the hyperlink object, you'll see that it accepts POST as a way to send the data. How should I fill the "Extra Info" String or byte array? How should I format the data? What is the limit for the data to be sent? Please see below: expression.Follow(NewWindow, AddHistory, ExtraInfo, Meth...

What is "posted" in ASP.NET MVC applications?

As I review more code and blog posts from lots of MVC sources, I still haven't wrapped my mind around what is "posted" when a request is made. I realize MVC doesn't support post, but I'm having trouble finding resources that can explain it well enough to understand. Inside the controller's public ActionResult nameOfAction(what the heck...

HTTP POST request not working over 3G

Hi there, When making the following HTTP POST request: NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; [request setHTTPMethod:@"POST"]; NSURLResponse *urlResponse = nil; NSError *error = nil; // execute NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningRespons...

Form POST returns 302 from within Joomla, works great outside

I have a form that submit a shopping cart to Google Checkout. The form works great on it's own, but when I put it inside of Joomla (using a content-type of wrapper), Google Checkout throws a 302, and the form page is loaded again. As I was writing this, I then decided to see what happens from the static form, outside of Joomla. It took ...