post

CURL not sending cookies with POST request

I have enabled cookie engine in curl using curl_easy_setopt on CURLOPT_COOKIEFILE and CURLOPT_COOKIEJAR. In the response from server, the cookies are set. In subsequent requests, CURL is not sending cookies along with the request only if it is a POST request. For GET requests CURL is sending cookies along. Should I indicate CURL in s...

php script to log the raw data of POST

Hi, I am sending data using HTTP POST to my server. But in the server, I am not receiving the data. And somehow I don't have any way to check the data (or debug script) on client side. But on client side I am getting HTTP 200, means data is sent. Also I can see the connection and data sending was successful. However log in the server doe...

Sending lots of data through POST or GET

I am trying to send an XML file from a textfield in my html, via ajax to a PHP file. This is the almighty PHP file: <?php $data = urldecode($_POST["xml"]); echo $data; ?> Data is sent to this file as such: $("#btn_save").click(function() { var data = escape($("#textfield").text()); alert(data); $.ajax({ ...

Request Entity Too Large PHP

Hi, In one of my CakePHP site, I got this error. Request Entity Too Large I don't know what is the problem. I think the data that I am posting through form is too large. I searched this in search engine and got that I will have to increase post_max_size. Be default I think it is set to 8M. But don't know how to increase post_max_size...

authentication for a Web service options

I am new to Web services and .NET. I have to authenticate a web service that is being accessed using http post. I tried putting a custom soap header and sending it to the service and checking the header in service but the header object is always null in the service. also if i put the user and password options in http headers how can ...

How do I post information to a server when a link is clicked?

Alright so I want my users to be able to click a link that will allow them to add a movie to their favourite. So in example I have http://xxx.com/favorite.php?userid=1&amp;movieid=1020 For the moment all works well, it adds the values into database, but since it's movies, I do not wish the page to reload, hence the use of Ajax which I ...

send POST request to custom URI in default browser

Hi everyone! I need to open system default browser and send to some custom URI POST data. So I have two part of code: first - opens def browser and another must send POST data to it, but does not do it. What can you say about it? enter code here private void button1_Click(object sender, EventArgs e) { string browser = s...

IE doesn't send POST data

IE 6 and any other version of IE stopped sending POST data since some undefined moment in the past. Reinstalling doesn't help. xdebug shows empty $_POST, profiler echoes empty array. FF and Opera work fine on the same PC at the same time. Case is WinXP, IE6, IE8, CodeIgniter 1.7.2, Apache 2, PHP 5.2.4 ...

Post message to facebook wall from android fb sdk always error

I have problem with fb sdk for Android (downloaded from http://github.com/facebook/facebook-android-sdk). Tried to post wall but always get error (permission already set and logged in to fb) here is the code snippet onClick function, i made small modifications on their sample code: Bundle params = new Bundle(); params.putString("messa...

Google Appengine & jQuery: Error 414 (Requested URI too long)

I have problems posting data to my local appengine application using JQuery Ajax. Here is simplified client side code: text_to_save = 'large chunk of html here' req = '/story/edit?story_id=' + story_id + '&data=' + text_to_save; $.post(req, function(data) { $('.result').html(data); }); Here is simplified server side code: class S...

Problem with input fields in Chrome,FF,Opera,Safari, not in IE

I'm using the AutoSuggest jQuery Plugin: http://code.drewwilson.com/entry/autosuggest-jquery-plugin So basically what it does is create a hidden input field containing comma separated values; the IDs of the Names in the AutoSuggest field. Using Firebug, I confirmed that the hidden field was created and the IDs were inserted in the 'valu...

Problems for parse POST json message Django/GAE

When I send a POST message to the GAE with a json parameters using POST the QueryDict parsed by the server is not parsed like a json ... I found a similar problem in this issue: http://stackoverflow.com/questions/2579235/iphone-json-post-request-to-django-server-creates-querydict-within-querydict Maybe is a problem with the GAE configu...

Why does IE issue random XHR 408/12152 responses using jQuery post?

I've just come across a problem relating to IE that there seems to be virtually no documentation about on the 'Net - only a few people asking similar questions. When I use jQuery (1.4.2) to send a POST request to my server (to which the server responds by sending JSON data), I occasionally get XHR 408 errors (meaning that the server tim...

Pass variables to PHP from javascript

I'm trying to get a javascript script (running in a Safari extension, to be exact) to send a number of strings to a PHP script on my server. I got it working by constructing a URL with the variables in it, but I'd like to do it using POST to be more secure and incase one of the variables being passed through has an '&' in it. Is there a...

Android MediaPlayer streaming MP3 over POST

Hi! I've got a question related to the Android MediaPlayer. Can it stream content through HTTP POST method , or do I have to write my own implementation? If so, what SDK do I have to use? Thanks in advance. ...

Best Matched function for PHP HttpRequest Class in C#

I am developing an App where I would need to perform HTTP Request using C#. Had in been PHP, I could use the HttpRequest class. Which class or group of class is best matched for the PHP HttpRequest by which I could make GET and POST Request. ...

What's the difference between : 1. (ajaxStart and ajaxSend) and 2. (ajaxStop and ajaxComplete)?

Basically that's the question (parentheses are important) ...

How to POST Raw Data using C# HttpWebRequest

I am trying to make a POST request in which I am supposed to send Raw POST data. Which property should I modify to achieve this. Is it the HttpWebRequest.ContentType property. If, so what value should I assign to it. ...

Check if a form has a key?

In asp.net i need to check if a form has certain keys in it. How do i do this? i thought form.HasKey() would work but then i found out there is no overload and really just tells you if its empty or not. How do i check for a key without causing an exception? The key is allowed to be empty. ...

how can I rewrite URL to fancy url?

Hi there, when my user logs in, I want the get variables that were sent rewrote onto the URL like so: http://mysite.com/mygetvar1/mygetvar_value1/mygetvar2/mygetvar_value2/ or mysite.com/mygetvar1=mygetvar_value1/mygetvar2=mygetvar_value2/ How can I do this? Please help! Thanks! ...