# Cannot POST to Another Web Site

**URL:** <https://forums.knack.com/t/cannot-post-to-another-web-site/8719>\
**Category:** API & Custom Code\
**Created:** [February 9, 2021, 2:05pm UTC](https://forums.knack.com/t/cannot-post-to-another-web-site/8719 "2021-02-09T14:05:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkSalamo41054](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MarkSalamo41054](https://forums.knack.com/u/MarkSalamo41054)\
**Post date:** [February 9, 2021, 2:05pm UTC](https://forums.knack.com/t/cannot-post-to-another-web-site/8719/1 "2021-02-09T14:05:55Z")

</div>

(I have also opened a support ticket about this, but hoping the community might have insight.)&nbsp; I am trying to make a POST call to another web site.&nbsp; (I have done this successfully from another web-based platform that permits ad hoc js to be added to pages, like Knack.)

However, the POST call appears to be converted to a GET by Knack and the call, understandably, fails.&nbsp; To make sure this was not accidental, I tried another POST with a web service that is set up to test REST calls and the same thing happened:

> $.ajax({  
> url: '[https://jsonplaceholder.typicode.com/posts](https://jsonplaceholder.typicode.com/posts)',  
> method: 'POST',  
> headers: {'Content-Type': 'application/json; charset=UTF-8'},  
> body: JSON.stringify({  
> title: 'foo',  
> body: 'bar',  
> userId: 1,  
> }),  
> success: function(data){  
> console.log("data", data);   
> }  
> });

Instead of a POST, this is turned into a GET and retrieves items.

I see from this blog post that a knack partner was able to make a POST to another web service:&nbsp; [https://www.soluntech.com/blog/how-to-upload-files-to-an-ftp-server-from-knack](https://www.soluntech.com/blog/how-to-upload-files-to-an-ftp-server-from-knack)

Trying to understand why this is happening and how to fix it.

---

<div class="post-metadata">

**Author:** ![MarkSalamo41054](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@MarkSalamo41054](https://forums.knack.com/u/MarkSalamo41054)\
**Post date:** [February 9, 2021, 8:45pm UTC](https://forums.knack.com/t/cannot-post-to-another-web-site/8719/2 "2021-02-09T20:45:29Z")

</div>

I believe I "solved" the problem. I didn't realize Knack is using a older version of jquery (1.8.1), which uses "type" instead of "method" in the ajax call.&nbsp; Because I was using "method" it was ignored and defaulted to "GET".
