post

jquery ajax get example

At the moment I'm using the post method like this $.ajax({ type: "POST", url: "Servicename.asmx/DoSomeCalculation", data: "{param1ID:"+ param1Val+"}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { UseReturnedData(msg.d); }, error: function(err) { al...

How do i call Rest Webserivce with a post method and send xml data in C#

Hi everyone, What i am trying to do here is make post request to Rest webserivce with xml data. this is what i have right now but i am not sure how to pass my xml data XElement xml = new XElement("MatchedOptions", from m in _matchedOptionsList select new XElement("Listing", ...

NSMutableURLRequest timeout interval not taken into consideration for POST requests

I have the following problem. On a NSMutableURLRequest using the HTTP method POST the timeout interval set for the connection is ignored. If the internet connection has a problem (wrong proxy, bad dns) the url request fails after about 2-4 minutes but not with NSLocalizedDescription = "timed out"; NSUnderlyingError = Error Domain=k...

400 Bad Request when getting a page with PHP Curl

I keep getting a 400 bad request code from a hotfile.com page when I try to get it with curl. I can get the pages fine in the browser The first (login) (post) request in the script works The last (get) request in the for loop works I have tried setting the curl headers to the same headers sent by my browser I have tried sleeping up to ...

C#: Canonical HTTP POST code?

I've seen so many implementations of sending an http post, and admittedly I don't fully understand the underlying details to know what's required. What is the succinct/correct/canonical code to send an HTTP POST in C# .NET 3.5? I want a generic method like public string SendPost(string url, string data) that can be added to a librar...

How do I upload binary content from an HTTP post into a MYSQL database through PHP without using PHP's file handling functions?

This may not be possible, but I'd like to ask anyway and see if there's a creative solution out there. I'd like to have a "file" form field on my site that uploads a file into a BLOB field in a MYSQL database. I must use PHP to accomplish this task. Normally, I know you would open the temp file found in the $_FILES array, using fope...

how do i hide var passing info in the url if i have no form tags?

Hey guys - im using var passing links like this to jump around a site... <a href = "index.php?content=about.html"> ...problem is, i have all the ugly var info visible in the url. I would usually hide it by using the post method, but i dont have any form tags, so is it even possible? Thanks!!!!!!! ...

firebug net monitor options

I have an issue where I executing an AJAX request. Instead of seeing the normal POST or GET preceeding the action page url, I see OPTIONS. The data is successfully posted, but there is no response from the action page. What does OPTIONS indicate? ...

Wordpress : List posts in category on '.com/categoryname' and display post on '.com/categoryname/post-name'

I have a permalink structure of /%catergory%/%postname%/. When I go to blah.com/categoryname I want all posts in that specific category to be listed. When I go to blah.com/categoryname/post-name I want just the specific post to be displayed. I have made a category specific template (category-5.php) and have got as far as... // Display...

Jquery Post + run php file > hide the form > give message...

Hi friends, here is my code about jquery post. I can't make it work somehow. I spent hours :( what I miss here?! when I run the code, It loads same page :( I want it to run the php code under query.php and hide the contact form and give "thanks!" message at send submit button click. (with no page loading) appreciate helps...

How to use jQuery AJAX for an outside domain?

I am trying to perform a simple jQuery AJAX attempt using either a .get() or a .post(). If I have a local copy on my server and do: $.get('/hash.php',...,...) I monitor in my console in firebug that the get is done and I get a response. All I change is the URI to an outside server and nothing happens. $.get('https://secure.mysite.c...

obtaining POST parameters at a URL passed through by DYNDNS

Background: Foobar.htm form uses this: <form action="http://rawurl-here.gotdns.org" method="POST"> [...] </form> rawurl-here.gotdns.org is a Dynamic DNS url that redirects the user to: http://currentsite001.mysite.org Question: Is there a way to ensure that the POST parameters sent by Foobar.htm always reach the final target,...

How can I get the actual error behind HttpResponseException?

I'm using Apache HttpComponents Client to POST to a server that returns JSON. The problem is that if the server returns a 400 error, I seem to have no way of telling what the error was from Java (had to resort to a packet sniffer so far - ridiculous). Here is the code: HttpClient httpclient = new DefaultHttpClient(); params.add(new Basi...

how am I supposed to find out that a form is being submitted twice?

Is something in the http protocol that will help me find out, or should I check the fields by myself. If identical field values can be submitted more than once, should I add a dummy hidden field or something? ...

ASP.NET : Hide Querystring in URL

I don't know if I'm just being overly hopeful, but is there a way to hide the query string returned in the URL? The scenario I am in is where I have page1.aspx redirecting a command to an outside server via a post, and it returns it to page2.aspx. The only problem I have with this, is that the querystring of the returned variables are ...

What is more compact, GET or POST?

Is POST more compact than GET, since GET requests have to be URL-encoded? ...

Is it secure to POST Credit Card data from View to Controller?

Need to submit some CC data from the View to the Controller where it will be processed, can I just POST it or is there some common way of securing the data in transit? ...

Post form while retaining get variables

This seems so simple but I can't remember how I've done it before. Using PHP I'm posting a form from mysite.com/?x=y and want the resulting page to be mysite.com/?x=y&formx=formy... Options I've tried don't quite give the desired result: action - setting action="?x=y" clears the get variables if method="get" in place of those in the f...

Can't get value of a button using Page.Request.Form[i]

My html looks this way: <button type="submit" class="img" name="save" value="0">Speichern</button> <button type="submit" class="img" name="save" value="1">Speichern und Schließen</button>** When i parse the request by using Page.Request.Form[i] the value of the key "save" is "Speichern und Schließen" and not 1 an I don't see any poss...

POCO C++ - NET SSL - how to POST HTTPS request

Hello How to correctly do a POST to HTTPS server and embed the login data correctly. Below code does not return any cookies (in Wininet it does). I wonder how POCO HTTP library handles HTTP redirections? MyApp() { try { const Poco::URI uri( "https://localhost.com" ); const Poco::Net::Context::Ptr context( new Po...