post

Problem with posting in Facebook Wall with PHP. Why it wokrs only in Firefox?

Hello, I want to post in my Facebook page Wall a message through my web page. I manage to do this with the next code: <?php $config['baseurl'] = "http://....facebook/index.php"; if ($fbme){ if (isset($message)){ try { $statusUpdate = $facebook->api('/me/feed', 'post', array('message'=> $message, 'picture'=> ...

How to cache an HTTP POST response?

I would like to create a cacheable HTTP response for a POST request. My actual implementation responses the following for the POST request: HTTP/1.1 201 Created Expires: Sat, 03 Oct 2020 15:33:00 GMT Cache-Control: private,max-age=315360000,no-transform Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Content-Length: 9 ET...

Problem POSTing an multidimensional array using cURL PHP

Hello! I'm having problems posting an array using PHP cURL. I have successfully posted other values to the same page using POST-variables. But this one is hard to figure out. The only problem is how I should present the data to the server. I checked the original form using a form analyzer. And the form analyzer shows that the POST vari...

Wordpress different featured image size for different post types

You can enable featured images for posts and set their size by using the following code in your function.php file: add_theme_support('post-thumbnails'); set_post_thumbnail_size(107, 69, true); but this sets the image size globally for any post types. Im using wordpress 3.0 and have created my own custom post type. Is it possible to ap...

How do I download a PDF from an HTML webpage-submitted POST form using C#?

I'm trying to programmatically download some PDF document with a C# windows form application. Right now, I've got far enough to get a unique URL for each page that goes to download the PDF. Each link is a webpage that submits a form via POST as soon as the page is loaded function window_onload() { Form1.submit(); ...

Handle HTTP POST with PHP

Hello all, I struggled half a day and came to conclusion that it can't be done. I threw away my php scripts and rewrote it in perl and it worked right from the start the way I wanted it to work. Still, I want to find out if such trivial task can be done correctly in PHP. The question: I have arbitrarily long (in size and time) file uploa...

Solution to do submit-for-validation to W3C Validator in PHP?

To use the W3C Validator your (i.e. beta-) website normally has to be online which I'd rather avoid. Or use the direct input method. Say hello to continuous copy & paste. My Idea: The "direct input methods" submits the input as a form (no surprise here). In other words: The actual validation-page receives a POST request. So: Could I m...

PHP: Retaining drop down fields in new page

Hi, I have 1 page that displays a form with various dropdowns that are being populated dynamically. Snippit <td valign="top"> <select name="status"> <option></option> <?php foreach($statuslst as $status){ ...

Uploading files with jquery's .post

Hi, I have form that uploads file's perfectly, with a post-page-refresh-form. However I have ajaxiefied the form with jquery's $.post All of the data except for the file upload is saving nicely. Is there somthing special I need to do to the form or in jquery to get the upload to work? Thanks! ...

How do I use JSONRequest.POST to get parameters from a url?

how to get POST parameters at a URL, using JSONRequest. The original site will be www.abc.com/aServlet. For example, www.abc.com/aServlet?user=tom I want to get the paramter of"user" which is "tom". I am actually keying in the user manually in aServlet which is a servlet. The problem is I dont know how to use JSONRequest to retrieve th...

why can't we access values on server side in POST request?

I tried to send the request from jquery ajax with contentType as 'text/plain'. I am unable to access the values on the server side. I am accessing the values using $_POST array in php file. Why is this happening. jQuery AJAX code: $.ajax({ type: "POST", data: {o_pass:o_pass,n_pass:n_pass}, url: "changepass", succes...

php encoded post param values

Was experimenting with some basic http post stuff with php and ran into this problem. 1.php: <head> <script src="/scripts/jquery.js"></script> </head> <body> <script> function hw(){ $.ajax({ type: 'POST', url: '/2.php', data: 'param=a+b+c', success: fu...

How is http post method implemented ?

Hello, I know want to know what happens behind the scene of a HTTP post method. i.e browser sends a HTTP post request to a server side script in PHP (eg). How does PHP's $_POST variable get the values from the client. Could someone explain in details or point to a guide. Regards, Mithun ...

ASP.NET MVC Form post

I'm a beginner in ASP.NET MVC application. What I'm trying to do is creating a form with some inputs that the user will be filling up, and once the user click the post button, I want the form to be posted with the information filled up and ready for printing. The way I'm doing it right now is as follow: // the controller that returns th...

POST vs GET methods - at the network level, which is more impacted by latency?

Is there any difference in network communication for HTTP GET and POST requests? With GET, I understand that the entire request is sent in one go. With POST, I think the initial request is sent, and then a second request is sent which sends all the parameters. For example, assume that the latency between server and client is 500ms. Wha...

jQuery For Loop with Post Not Counting Correctly

So, I have the following line of code, that does a for loop and subjects 12 on every loop. If I alert right before the post, it alerts the numbers as you would expect (72, 60, 48, 36, 24). But, with the alert inside the post it alerts the number 12 five times. Any idea why that is? Any idea where the number 12 is coming from? function l...

Jquery - prevent ajax requests from "stacking" up.

Alright there's two ways this can go. One is from the presentation side, and one is from the "processing" side. Right now I have a table of data set up. Certain actions (typing a search query, clicking a different page number, etc...) trigger a function called refreshData() refreshData() first calls showOverlay() which fades in an over...

Submitting form via ajax, one way or two ways?

What's better of this two options: 1. $.post( '/ajax/action', function(data) { doResult(); } ); *This option has to receptors: ajax.php and action.php* or 2. $.post( '/action', { typerequest: 'ajax' }, function (data) { doResult(); } *This option has only 1 receptor: action.php (if typerequest exists, returns ajax result)* Form ...

Routing issues? with asp.net mvc 2.....

Hey guys, Having some problems with an ASP.net mvc 2 project. I believe it's a routing issue? but i may be wrong... What happens is I have a method that accepts an HTTPPOST and this method/action will then process an xml file that was sent using post. Now the problem is... every time I try to do any logic with the posted file my clien...

DotNetNuke, PHP, Simulating a remote postback using curl

I have a page in DNN like: http://nolimitswebdesign.com.dnnmax.com/test/tabid/57/ctl/Edit/mid/374/Default.aspx I need to send a post request to that page using PHP+Curl which modifies the content of text area and saves it (like as if someone modified it manually and clicked the update button on that page). I doubt that with DNN it might...