Software Archive
Read-only legacy content

Método Post

Patrick_F_
Beginner
577 Views

Bom dia,

Estou tentando efetuar o método post em um server local  onde ao realizar o teste através do "postman" é retornado a mensagem esperada (conforme imagem em anexo), porém no APP não retornar nada poderiam me auxiliar nesta questão?

No caso o teste é de um APP bem simples onde ao clicar no botão ele envia o post para a URL e retorna em uma campo texto a mensagem que é apresentada na página.

Segue abaixo código do botão

 $.post( "http://localhost:49697/api/PetServer?Nome=teste&Sobrenome=euuuuu", function( data ) {

  $( ".result" ).html( data );

 

0 Kudos
2 Replies
Patrick_F_
Beginner
577 Views

POSTMAN.png

Segue a imagem do post anterior.

0 Kudos
PaulF_IntelCorp
Employee
577 Views

Your post translated:

Good day,

I'm trying to make the post method on a server where to take the test through the " postman " the expected message is returned (as attached image ), but in APP return nothing could help me in this matter ?

If the test is a simple APP where when you click the button it sends the post to the URL and returns in a text field the message that appears on the page.

Below the button code

I am not sure if I fully understand your question, so I'm going to guess that you need to set your domain access whitelist. See this post: https://software.intel.com/en-us/forums/topic/559482

0 Kudos
Reply