post

post data changing on submit

When I submit data in my form it changes "abcd" to \"abcd\" on the other end.How can I overcome this problem... (I am using post method to send data)..... Please help...Thanks ...

Post file directly from byte array in ASP.net.

How do you replicate a traditional POST form (file post) in code, the end goal is to stream a byte array as the file into the posted form, the example below is the form that I am trying to replicate in code. <form method="POST" action="http://export.writer.zoho.com/remotedoc.im?apikey=[apikey]&amp;output=editor" enctype="multipart/f...

WCF, POSTing JSONized data

I have a complex type: [DataContract] public class CustomClass { [DataMember] public string Foo { get; set; } [DataMember] public int Bar { get; set; } } I then have a WCF RESTful webservice that has this in it: [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMess...

Some browsers send POST followed by GET requests

My Servlet app. gets called twice every time the user submits a form: The first time with a POST request, and immediately after, with a GET request (both requests with the same URI). This problem appears to be independent of the app server (I've tried with tomcat-6.0 and with resin.2.1). The problem seems to be browser related: The pro...

Send a file via HTTP POST with C#

Hi everyone, I've been searching and reading around to that and couldn't fine anything really useful. I'm writing an small C# win app that allows user to send files to a web server, not by FTP, but by HTTP using POST. Think of it like a web form but running on a windows application. I have my HttpWebRequest object created using somethi...

Post-Redirect-Get in ASP.NET

Hi all, i do Postback in my Page1.aspx to another page. If a press F5 key in Page1.aspx its appears the message (To display the webpage again, Internet Explorer needs to resend the information you've previously submitted. If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to d...

Can I submit a predefined local variable as a POST w/out putting into a form field?

I have a local variable I'd like to be sent along with the rest of the POST data taken from an HTML form. Is there a function that lets me put more data from the current page into the POST array? ...

Problem with CURL posting data

I'll keep this nice and short. I'm trying to post a value to a remote form. This code is working perfectly: $url = "http://eirestudio.net/blog/"; // URL to POST FORM. $post_fields = "s=test"; $ch = curl_init(); // Initialize a CURL session. curl_setopt($ch, CURLOPT_URL, $url); // Pass URL as parameter. curl_setopt($ch, CURLOPT_POST...

Will redirect avoid double posting?

Probably not but i want to ask. Will redirect avoid double posting? I know there are better ways to avoid it but how do most double post happen? from my understanding its when the current page doesnt load and the user hits refresh, not bc of clicking post multiple times. I figure redirect info are so small that when the user hits refresh...

Problem with POST request to RESTful WCF Service

I am trying to make a post request to my restful WCF service. The contract looks like this: [OperationContract] [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemp...

Sending Video Data to WCF Restful service as POST

Hello, I was having a problem sending video data to a WCF restful service using post, my contract looks like this [OperationContract] [WebInvoke(Method = "POST", ResponseFormat=WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "UploadMovie")] string Up...

YATT Cannot capture POST data

I'm trying to debug some screen scraping that I'm doing by capturing the POST request made by firefox and comparing it to the one that my script does, however I'm having some trouble capturing that POST request with YATT: If I set YATT to use Raw Socket Packet Capture with the IP address that appears to be my external IP address then I ...

Posting to website using captcha

Hi, Currently I'm wondering if there is a way to post to a website using captcha for a human-check. The following question is asked, ofcourse this is done with random numbers: Type this number in digits; 'twohundredandfive': [ input ] The form is sent using AJAX. So when reloading the website the number to be typed changes. A way to...

POST Data to PHP Page Using C# in Place of Form URL

Hello! I have an C# cart application that needs to POST some data to a PHP page and redirect the user to that page to view the data. Everything is working fine! So, what is the problem?? Since we are using a Javascript function to POST the form to the PHP page through setting its action to the PHP URL, it is not allowing us to clear ...

Finding File data from POST in C#

This is probably something blatantly obvious that I'm just missing. Help me, SO! I'm trying to access file data submitted via POST from a web form (not the built in C# ones though.) I have no idea how to do this, and MSDN is singularly unhelpful in this matter. Here's the three things I've tried so far: Request["file"]; Request.Form["...

JQuery load() in IE8 POST&GET not working!?

Heres my Situation. Im trying to relaod a div in a page with load(). I first tryed with a GET. Worked fine with Firefox but not IE8. After a bit of reading, i found out that i had to POST my PARAM so i went on and did a POST. The result is just the same. It wont work in IE8. Here is the line im using for the POST. $(\'#test_1\').loa...

How can I select and upload multiple files with HTML and PHP, using HTTP POST?

I have experience doing this with single file uploads using <input type="file">. However, I am having trouble doing uploading more than one at a time. For example, I'd like to be able to select a series of images, then upload them to the server, all at once. It would be great to use a single file input control, if possible. Does anyo...

New Line problem when doing Ajax Post with JQuery

Hello, I'm trying to use Ajax with JQuery, what I want to do is just send multiline textbox value to php with Ajax. I'm using that code, it sends txtAnswer value to php, unfortunately, it removes new lines (\n) from data. How can I solve this problem... Thanks in advance.. $.post( 'post-answer.php', {answer: $("#txtAnswer").val(),...

How to send POST request to some website using winapi?

I'd like to send HTTP POST request to website and retrieve the resultant page using winapi. How can I do that? Thanks i advance. ...

Should posting one of two forms in a page post all fields in both forms, or have I got a bug in my code

I have two forms in a page. Have decided to update my post with more realistic code from the page itself... <form action="test.php" method="POST"> <strong>Details of work carried out</strong> <textarea name="detailsOfWorkCarriedOut"></textarea> <strong>Materials used</strong> <textarea name="materialsUsed"></textarea> <input type=...