post

iPhone Make POST request, handle cookie

I'm hoping someone can shed some light on the following, I think I am heading in the right direction with this. I want to login to my server with a user/pass combo, then I need to be able to tell If I logged in correctly (a cookie should be dropped), then I will make another request if this is the case. Any help appreciated, heres the c...

Sending XML data using HTTP POST with PHP

I need to send this XML <?xml version="1.0" encoding="UTF-8"><gate><country>NO</country><accessNumber>1900</accessNumber><senderNumber>1900</senderNumber><targetNumber>4792267523</targetNumber><price>0</price><sms><content><![CDATA[This is a test æøå ÆØÅ]]></content></sms></gate> to a SMS gateway service. The service listens for HTTP ...

retreive POST data from FLASH to ASP.Net

here's my AS3 code: var jpgEncoder:JPGEncoder = new JPGEncoder(100); var jpgStream:ByteArray = jpgEncoder.encode(bitmapData); var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream"); var jpgURLRequest:URLRequest = new URLRequest("/patients/webcam.aspx"); jpgURLRequest.requestHeaders.push(header); j...

how to check which event caused the post back in asp.net mvc application

I have one View and one Controller in my ASP.net MVC Application. I have one "Submit" button & one "Cancel" button in my view. When I click any of the botton below action will be triggered. AcceptVerbs(HttpVerbs.Post) public ActionResult Result() { } Now the Question is how i will know in my public ActionResult Result() , whethe...

How to upload huge files from Nokia 95 to webserver?

I'm trying to upload a huge file from my Nokia N95 mobile to my webserver using Pys60 python code. However the code crashes because I'm trying to load the file into memory and trying to post to a HTTP url. Any idea how to upload huge files > 120 MB to webserver using Pys60. Following is the code I use to send the HTTP request. f = ...

Using a form token when user isn't logged in

I noticed that a lot of sites send a random token with form posts even though the user is not logged into a service requiring authentication. I understand the use of a token when you have an authenticated session, but what is the point in sending one when they aren't authenticated? Is it common practice to create a session when a user ...

Is there any way to debug a call coming from an AJAX post?

Is there any way to debug a call coming from an AJAX post? This jQuery fires when the user hits OK: $.post( "/Detail/Copy", { bpid: $("#benefit_plan_id").val(), year: $("#copyYear").val(), plan: $(this).val() }, function(data) { } ); If I put the breakpoint in my controller: <AcceptVerbs(HttpV...

ASP.NET MVC POST Parameters in the url

url : /jobs/UpdateJobResults/GUIDHERE When I do a post to the below function the guid id is always blank, can I use the above format to POST the GUID in the url (as the form body has the results dictionary) ? [AcceptVerbs(HttpVerbs.Post)] public ActionResult UpdateJobResults(Guid Id, Dictionary<string, object> results) { } ...

Is there a way to put Java objects in a POST request from a JSP?

I have a JSP page that renders, and calls a Web service to load some initial data. The user fills out some form information, and then submits it to the server, which could possibly return the same JSP page for further processing (and another submit). The initial data never changes, but it is an object representation, so I'm trying to fig...

Is there a way to change (delete) a standard phrase going after a single post in Wordpress?

Hello everybody, my question is about Wordpress. Is there a way to get access to the phrase, going after a single post? "Enjoy this article If you have enjoyed this article consider subscribing to our RSS Feed" Thanks a lot) ...

cURL/Snoopy: How do I read cookie data when sending POST data in the background, API?

Hey I have a script that POSTs all data sent to it directly to another page. On the second page, the script calls for several variables set as $var = $_COOKIE['name']; The problem is that the script seems to not set the variables that read data based on cookies any time the script is called from a background cURL/Snoopy POST. How can ...

CodeIgniter: post variable not being read

I have a controller user with a method login For some reason, when I call: $this->post I get an error Undefined property: User::$post While, this works fine: print_r($_POST); ...

How to get unselected checkbox?

Hello! I have three checkboxes like ch[0], ch[1] and ch[3] (sometimes i have more, or less, it's dinamic) and in PHP i want to get the unselected items also, like this: 0=yes,1=no,3=yes and so on. Can I solve this somehow? ...

POSTing data to ASP.NET MVC from a WPF app

Hi -- I'm trying to submit some Json data to an ASP.NET MVC controller from a WPF app. I wrote my client-side code based on a couple of samples from MSDN using the WebRequest object and BeginGetResponse. This worked fine when I was just sending a GET request. It hit my ASP.NET MVC controller just fine and brought back some Json data....

How to pass an array?

Hello! How could I pass an array with PHP by GET method? Thanks ...

Create new etherpad using PHP and CURL

I'm trying to write a simple PHP script which automatically sets up new etherpads (see http://etherpad.com/). They don't have an API (yet) for creating new pads so I'm trying to figure if I can do things another way. After playing around some, I found that if you append a random string to etherpad.com to a not-yet-created pad, it'll co...

Modify javascript code to iterate through all variables in the form

I have the following code that worked fine till now as I decided to add more variables to the form. How can I make this function smart and itterate and pass all the variables in the form? function getquerystring(strFormName) { var form = document.forms[strFormName]; var word = form.clock_code.value; qstr = 'clock_co...

How to open IE with post info in CSharp?

Hi, i am developing a small program which as a windows form. On this form, i want to put a link, and when user click the link, a seperate IE browser will be open with post data. Original, i used system.diagnostics.process.start(), however, i can not post data through this kind of call. And i searched the web, some guy suggested to use "...

HttpPostRequest Text+File in vb.net

Hi, HttpPostRequest with Files only in VB2008 is easy: Using wc As New System.Net.WebClient() wc.UploadFile("http://server.de/exemple.php", "c:\test.png") End Using But I want POST Text + Files in one POST (username, password, file). But, how to? ...

HttpWebRequest Class Text + File in Vb.net

How to create an POST with the HttpWebRequest Class in VB.net (2008)? I can find exemples with text only but not with text and files. Thanks. ...