http-post

Waiting for javascript async callback @ http post

Hi guys, I'm implementing a small feature and kind of stuck. I have a button to execute some action, such as <input type="submit" value="My Button" onclick="javascript:DoSomething();" /> When the user clicks the button the function DoSomething is called. function DoSomething() { var geocoder = new GClientGeocoder();...

Login to a site and then POST to a page in it

I have to login to a page using three parameters, after that I have to POST two parameters to another page inside the site I've just logged in. So far I've got a cookie with this: curl -c cookie.txt -d "username=username&pwd=pwd&domain=mydomain" http://myurl ...inside of the cookie I have a JSESSION id. I use the cookie as follows: ...

Sharepoint - Multiple document upload - HTTP 'post' verb not allowed

When attempting to upload any number of documents, including very small files, seems to succeed- but subsequently redirects to an error page indicating the following: /_layouts/error.aspx?ErrorText=The%20HTTP%20verb%20POST%20used%20to%20access%20path%20%27%2F%5Fvti%5Fbin%2Fshtml%2Edll%2FSiteCollectionDocuments%2FForms%2FUpload%2Easpx%27...

REST post format

When you use REST to create a new entry using a POST, I see some APIs such as Google's specify that you send XML as part of the request while others specify that you send key/value pairs. Is there a standard or best practice for REST POST-s? ...

How to send parameters on an Https POST with C#

I have asked here how to make the https post, and now that works fine. Problem now is How to send a parameter, name query, wich is a json string: {"key1":"value1", "key2":{"key21":"val21"} } What I'm doing and doesn't work is: HttpWebRequest q = (HttpWebRequest)WebRequest.Create(Host + ":" + Port); ServicePointManager.ServerCertificat...

show "webpage has expired" on back button

What is the requirement for the browser to show the ubiquitous "this page has expired" message when the user hits the back button? What are some user-friendly ways to prevent the user from using the back button in a webapp? ...

Why http post parameter dissapears after Content-Type changed?

I'm making an http post to an url. When using WebClient or WebRequest it all works fine, unless I change the WebRequest.ContentType propertie. What I'm missing here? As suggested here I'm trying this: using (WebClient client = new WebClient()) { NameValueCollection fields = new NameValueCollection(); fields.Add("q...

Adding data to a silverlight HTTP POST Async

I'm trying to send some data using a simple HTTP POST in Silverlight 3.0 but for some reason I can't seem to find a good example on how to do this. So far this works, but how do I send some data along w/ the request? Public Sub SubmitMessage() request = WebRequestCreator.ClientHttp.Create(New System.Uri("http://localhost:27856/Home...

HTTP POST and complex structures

I'm trying to send a complex HTTP POST request to a web service. The web service was created using VS2008, in which you can set VS to create HTTP POST and GET interfaces alongside the SOAP one. Now the request is asking for both string parameters (username, file description, etc.) and the file itself, represented as Base64Binary. When ...

Error while installing Poster (Python Module)

I'm trying to install Chris Atlee's python Poster library so I can upload a file using a HTTP POST query from within my script. On python 2.3, when I type # python setup.py install, I get the following error. The install continues, but I can't >>> import poster later on. byte-compiling build/bdist.linux-x86_64/egg/poster/encode.py to e...

SOAP object over HTTP post in C# .NET

I am trying to compose a SOAP message(including header) in C# .NET to send to a URL using HTTP post. The URL I want to send it to is not a web-service, it just receives SOAP messages to eventually extract information from it. Any ideas on how to do this? ...

How to control encoding when POSTing through Net::HTTP?

I'm trying to create an API wrapper for Issuu using ruby and am running into errors when attempting to POST the data. When trying a simple GET through the browser with all the params in the querystring, I am able to retrieve the expected results; however, when I try to perform the same operation using a POST in code (which the API claim...

JavaScript JQuery Ajax Issue: POST Works fine in Firefox, IE, Safari but not Chrome.

I'm new to JavaScript, and working on a hobby project with a few developers. We have a simple page that is used to submit requests to a database. I decided to try learning JQuery, and started implementing some AJAX functionality into this request page. It works fine in FireFox, IE and Safari, but for some odd reason, I can't get it to w...

ASP.NET - Receiving HTTP POST data in Forms Authentication's loginUrl (from an external App)

I need to pass some data from a classic ASP application to my ASP.NET app using the POST method (can't use GET sorry) in a form. This doesn't seem to work if my action is the target aspx page but my ASP.NET app is using forms authentication, because it looks like somewhere in the pipeline my data is lost, given that the Request.Form co...

Receiving binary data from HTTP POST Request in ASP.NET C#

This should be very trivial but for reason can't find it. I'm posting some binary data to a form in ASP.NET as multipart/form-data and I can see that the request is receive by looking at Request.InputStream : -------------------------------7cf2a327f01ae Content-Disposition: form-data; name="DeviceID1" Some binary data ---...

Can Google Analytics Track Results from Form POST action?

My product search on my website uses HTTP POST to submit the search information. I want to track the search results page, learning what people are searching for and the results that they get. I'm told that I have to switch to using HTTP GET to make that happen. Is there a way to keep using HTTP POST and still have Google Analytics pick ...

Upload a file into SharePoint using FORM POST

I would like to upload a file into share point using FORM POST. I am trying in this way <FORM NAME="oForm" id="oForm" ACTION="<site>/_layouts/Upload.aspx?List={A4793E2B-3081-4668-B6F1-0A013159F9B1}&RootFolder=/sites/servdeldocmgr/Test SOAP2" ENCTYPE="multipart/form-data" METHOD="POST"> <input type="file" name="file1" id="fil...

Uploading images to Imgur.com using C#.

Hi dudes! I just recieve my unique developer API key from Imgur and I'm aching to start cracking on this baby. First a simple test to kick things off. How can I upload an image using C#? I found this using Python: #!/usr/bin/python import pycurl c = pycurl.Curl() values = [ ("key", "YOUR_API_KEY"), ("image", (c.F...

How can you add a Certificate to WebClient (C#)?

I know it is pretty simple to add a certificate to a HttpWebRequest. However, I have not found a way to do the equivalent using WebClient. Basicly, I want to send out a POST with a specific certificate using WebClient. How would you accomplish this exact code using WebClient: var request = (HttpWebRequest) WebRequest.Create("my-ur...

How to simulate browser HTTP POST request and capture result in C#

Lets say we have a web page with a search input form, which submits data to server via HTTP GET. So that's mean server receive search data through query strings. User can see the URL and can also initialize this request by himself (via URL + Query strings). We all know that. Here is the question. What if this web page submits data to t...