post

Reading a Post request from a user HttpApplication

Hi, I've been messing about with HttpApplication app = (HttpApplication)source; Is there some way of the server identifying if the request is get or post. Basically i want to create an if statement and if the request is a GET it jumps into the if statement, if its a post it doesnt. Anyone? ...

How do I update an instance of a Django Model with request.POST if POST is a nested array?

I have a form that submits the following data: question[priority] = "3" question[effort] = "5" question[question] = "A question" That data is submitted to the URL /questions/1/save where 1 is the question.id. What I'd love to do is get question #1 and update it based on the POST data. I've got some of it working, but I don't know how ...

how to prevent curl from doing upload

There are many questions and guides on how to get cURL to DO file uploads, but what I'm asking today, is how to NOT get it to do that. According to the curl options docs on php.net, curl "knows" to attempt a file upload by when a param starts with "@" then the local file path This is all well and fine, but what do you do if you need to...

How to consume REST service using http POST

I defined a WCF implementation of REST service: enter code here [ServiceContract] public interface IService { [OperationContract] [WebGet(UriTemplate = "customers/{id}", ResponseFormat = WebMessageFormat.Json)] Customer GetCustomer(string id); [OperationContract] [WebInvoke(UriTemplate = "customers", ResponseFormat ...

Making a GET request with jQuery like WGET

Hello Friends, i want to call a webpage from jQuery and add the content to it to a div. The downloaded data should not undergo any parsing, it should be in raw format. I try to integrate the another application to my website. I've done some experimenting and the code does a successful request, but there seems there is no result display...

posting a form from one HTTPS to another HTTPS site causing security alert

I need to post a string from a .NET site to a Classic ASP site which are hosted on the same server (different virtual directories). https: //example.com/DOTNETSite/Sender.aspx to https: //example.com/ClassicASP/SomeFolder/Target.asp Target.asp page has 3 ways to handle incoming data: Form Post Query String Headers I cant pass my...

trying to POST to w3c validator with python script

I'm trying to use this python script to upload a file to the w3c validator. ~/Desktop/urllib2_file$ python test-upload.py -u http://validator.w3.org/ -f ../index.php -n uploaded_file -p Content-Type=text/html > ../results.html && firefox ../results.html Any help will be greatly appreciated! EDIT: cyraxjoe pointed out I needed to run...

Postscript font to EOT

Hi, I have a postscript font in my local language. Now to avoid errors in webpages i need them converted to EOT. How should i do this? ...

form POST + direct. Not posting

ok so here is my HTML <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"&gt; <!-- XHTML ADVANCED --> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Find Hotels</title> <style type="text/css"> a:visted {color:#e27023; ...

Send parameters to a php file in different language

Hi all, I am querying a php script using js with following func call: $.post("http://localhost/abc/create.php",{ name:data } ,function(data){ alert(data); }); Now this name parameter can be in any language, eg: english, hindi etc.. my code is working fine for english. But it is not working for hindi. When i am...

MSBuild conditional Exec?

Hi, I am building various projects using the <MSBuild Projects="... markup. I am then executing some command line tools after the project is built. E.g <Target Name="Name"> <MSBuild Projects="" /> <Exec Command="" /> </Target> I notice that the project is only built as required and get the following output when the build scr...

Http Post in Vba

I am trying to figure out how to make a POST in VBA. Ideally I'm looking for a simple working example that I can play with. This is what I have so far, but I'm not really sure what to do with it. Mostly what does the formdata look like. Function WinHTTPPostRequest(URL, formdata, Boundary) Dim http Set http = CreateObject("MSXML2.X...

Can you use jQuery POST in a Chrome extension?

I'm trying to get my Chrome extension working with the Google Calendar API. However, the way Google has set up the extension sandbox makes anything almost impossible. I can't add the Calendar API using JavaScript because I've tried 200 different ways to include the http://www.google.com/jsapi library. Therefore, I want to try interact w...

PHP MySQL? Problem

I am using a simple PHP script for the activation part of one of my applications. The applications posts one variable to the page (http://validate.zbrowntechnology.info/WebLock.php?method=validate). The variable is the serial number, posted as 'Serial'. Each time I post to this page, it returns Invalid. Here is the code: <?php $serial...

cURL - can't get POST response

Hi, I'm trying a basic thing. I have two files: curl.php and form.php curl.php <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://localhost/test/test34_curl_post/form.php"); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT...

Why do we need HTTP GET? Is there anything that can't be achieved by HTTP POST?

As far as I know what GET can do, the same can be achieved by POST. So why was GET required in first place while defining HTTP protocol. If GET is only for fetching the resource, people can still update resources by sending the parameters values in URL. Why this loophole? Or the guy who did the coding on server side to update the resourc...

POST to password protected URL?

I am working on a project that requires me to POST some data to a url that requires a username and password for access. How do I build the URL so that it automatically logs into the system? $.ajax({ url: "https://xxxxxxx", type: "POST", data: "___PUT_BODY___="+file+"&file="+time, }) ...

Jquery for loop doesnt stop

for (var i=0;i<ToArray.length;i++) { $.post('jquery/messages.php',{To:ToArray[i],subject:subject,msg:msg},function(data){jAlert(data);}); } User can send short messages to another user(s). The names are commaseparetad and after i split the string i want to send the same message to the different users with a for loop. if som...

Storing Last Search Results

Hi, I'm working on a collaborative project and I'm trying to figure out the best way to store previous search results. Let me quickly explain the scenario. I have a list of search result items and I want these results to be stored as a user clicks on an item and visit's it's landing page. At the top there will be a section listing the l...

$.post does not submit data

$("#contact-us-form").submit(function () { var nameVal = $("input[name=name]").val(); var companyVal = $("input[name=company]").val(); var titleVal = $("input[name=title]").val(); var emailVal = $("input[name=email]").val(); var phoneVal = $("input[name=phone]").val(); var messageVal = $("input[name=message]").va...