post

How do I make a HTTP POST request to an url from within a c++ dll?

Hi, there's an open-source application I need to use. It allows you to use a custom dll. Unfortunately, I can't code c++; i don't like it; it don't want to learn it. I do know PHP very well however, thus you can see that I'll rather do my logic within a PHP application. Thus I'm thinking about posting the data from c++/dll to a url on m...

Post Redirect Get pattern and use in a RESTful resource-based service when supporting searching

If I have a HTTP based RESTful service and I want to POST a search resource and use the PRG pattern for returning the URL to the search-result resource, I have to persist the search-result resource on the server. Is this a good idea? If I do persist the search-result resource how long is it persisted for? Can I control this by a HTTP ...

Submitting a multidimensional array via POST with php

I have a php form that has a known number of columns (ex. top diameter, bottom diameter, fabric, colour, quantity), but has an unknown number of rows, as users can add rows as they need. I've discovered how to take each of the fields(columns) and place them into an array of their own. <input name="topdiameter['+current+']" type="text"...

Use array as jQuery POST Variables?

When sending data via POST or GET with jQuery you use for format { name:"value" } so i thought, is there a way to do it with this kind of code: var postdata = array(); postdata['name'] = "data"; $.post("page.php", postdata, function(data) { alert(data); } I tried this, and it doesn't seem to work. Is there a proper way to do this?...

Flex HttpService POST limited to 543 Byte per Form field?

Hi, I am getting a FaultEvent when trying to send form fields through HTTPService that contain more than 542 chars. Initializing the HttpService: httpServ = new HTTPService(); httpServ.method = 'POST'; httpServ.url = ENDPOINT_URL; //http://localhost:3001/ReportError.aspx httpServ.resultFormat = HTTPService.RESULT_FORMAT_TEXT; httpSer...

Problem with PHP; Posting Hidden Value!!?

Hi, I have a page which basically allows an admin user to create manager user types (basically a register function. So when the values are submitted, they are stored into the DB, very very basic stuff. However, I have a hidden variable type..reasons are I have 3 different user levels and I have declared they identification as an integer...

Posting Static & Variable length data to the Server with JQUERY & Coldfusion

I'm looking to post the following type of data to a server using JQUERY & Coldfusion: foodID - int foodDESC - text html text from a WYSIWYG (CKEDITOR) --there will always be just 1 foodID and foodDESC per POST to the server but there can be a variable number of: locationID - int LocationDesc - text --There can be 0-8+ of these. Should...

JQUERY/JSON, given a variable list of items, how to post to the server

I have a .each() that is running a loop to find the following below.. Given the following which builds during the .each loop id - desc 313 - blah blah 213 - blah blah 313 - blah blah 323 - blah blah How can I form this data in JQUERY to be posted to the server (coldfusion) ...

jquery post work with hebrew (unicode) but not with spaces, get not working with hebrew but does spaces

i have tried load and hebrew didn't work for me so i changed my code to $.ajax({ type: "post", url: "process-tb.asp", data: data, success: function(msg) (partial code) not knowing that post and get is the problem for my hebrew querystring. so know i can get my page to get the hebrew and english bu...

Sending varibles behind the scenes from PHP to whatever absolute or relative page?

How do I post them to whatever page from here and how can I send these variables to several pages at the same time? //catched those variables within the same page $event = $_POST['event']; $when = $_POST['eventdate']; $where = $_POST['place']; $name = $_POST['name']; $tel = $_POST['tel']; $email = $_POST['email']; send $event, $when, $w...

Using htaccess rewrite/redirect so single PHP file can display data according to GET/POST variables

Hey gang, Bear with me as I try to learn more about .htaccess redirect rules - I'm a UI guy by profession and I'm doing my best to enhance my coding skills languages other than HTML/CSS/PHP, etc So, what I have is an index.php file that contains a menu - pretty simple. If Javascript is enabled on the users computer then forms are shown...

Handling 2 buttons submit Actions in a single View/Form - ASP.NET MVC 2 RTM

I have a View in which the user is able to upload a file to the server. In this view I also have 2 buttons: one to Upload a file and other to Download the last file imported. In my Controller I created 2 action methods: Import and Export. How could I manage to redirect each button click to the proper action method in my Controller? I...

PHP - Pass POST variables with header()?

Hi, I'm trying to use the header() function to create a redirect. I would like to display an error message. Currently I'm sending the message as a parameter through the URL, however this makes it look quite ugly. Is there a way to pass this value as a post variable instead? Any advice appreciated. Thanks. ...

Programmatically login to a website and redirect the user to the logged in page?

Hi, Right now, I have all the employees of my company login to an external website using the company id, username and a password. We are trying to integrate it into an intranet portal which should provide seamless access to this website without requiring the user to enter these credentials. Is there any way of doing this programmatical...

cURL + HTTP_POST, keep getting 500 error. Has no idea?

Okay, I want to make a HTTP_POST using cURL to a SSL site. I already imported the certificate to my server. This is my code: $url = "https://www.xxx.xxx"; $post = "";# all data that going to send $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); c...

Simulate login action to VBulletin using C#

Hi, I trying to write a program (C#) that can login and create new thread into VBulletin forums. I tried 2 way: 1) Use HttpWebRequest : Login is done. However creating new thread is fail. This is posting code: public static void CreateNewThread(string url,string fId, string title, string message, string tag) { url += "newt...

php POST and non-english language chars passes empty

I'm trying to program a Hebrew site with a search option. (old site and the charset of this site is windows-1255) I am using php 5.2 with Apache 2.2, on a Debian 5 (Lenny) with appropriate code pages enabled. I am using _POST to pass arguments to a script. If I pass English word to the script everything works, but when I use Hebrew noth...

$_POST goes empty after adding a new input type "file"

Hi, I'm not finding a way to understand and fix this and I've done a lot. I've got a script, wish is a simple form, that sends a file trough POST. The second file, process the info. By default, I give to the user a few fields, one of them being a input field of type "file" and there's also, a few "hidden" one's, that gives me values t...

Java - Creating a httprequest the uses the header information from previous request

I got some sample code from the net here: http://www.javadb.com/sending-a-post-request-with-parameters-from-a-java-class That works fine. It sets the relevant headers in the response. However, what if I wanted to visit another url on the same site with those headers? If I create another URL object the session is lost. How do I maintain ...

Why do I need the isset() function in php?

I am trying to understand the difference between this: if (isset($_POST['Submit'])) { //do something } and if ($_POST['Submit']) { //do something } It seems to me that if the $_POST['Submit'] variable is true, then it is set. Why would I need the isset() function in this case? ...