Questions tagged as 'post'

2
answers

Datetime Javascript to Datetime C #

I am trying to send an object by means of a POST request, however I have some problems with one of the attributes of that object (datetime). date = $("#dpkparam").val(); fecha = new Date(date.replace(/(\d{2})-(\d{2})-(\d{4})/, "$2...
asked by 13.04.2016 / 23:40
1
answer

Problems with AJAX and PHP

I'm in trouble because I'm passing a couple of parameters from AJAX to PHP but PHP does not collect this data. function ImprimirFichaUsuario(){ var id = $('#idusuarionuevo').val(); var name = $('#nombrenuevo').val(); //Estos aler...
asked by 20.08.2018 / 12:56
1
answer

How to recover variables sent by Angular in PHP?

I'm trying to send a data by getting from an Angular 5 service to an API in PHP. The way I send it is like this: public getMembers$(id): Observable<any> { return this.http.get(this.URL + 'read_records.php?id=1'); } The variable t...
asked by 23.06.2018 / 14:12
1
answer

How to use a permanent token with Http POST in REST services

Good morning, I'm trying to do a POST of a Json with a permanent token, but it always gives me error 401 unauthorized , code: public static async Task<Uri> CrearitemAsync(Item item) { using (var client = new HttpClie...
asked by 26.09.2017 / 16:30
2
answers

How can I get HTML from the following web request?

string html = ""; using (WebClient webClient = new WebClient()) { string address = "https://#.tk/index-post.php"; byte[] postData = Encoding.ASCII.GetBytes("name=wololo"); webClient.Headers[HttpRequestHeader.Accept] = "text/html, app...
asked by 23.10.2016 / 23:11
2
answers

Error consuming web service with POST and GET in Angularjs

Hi, I have a problem that keeps me from moving forward. I have a Web Service in which it asks to enter coordinates (INPUT); these, if they are correct, will send in JSON format a list of the name of the nearby branches (OUTPUT). You ca...
asked by 01.09.2016 / 05:40
2
answers

Run cURL with digest authentication in java

I have a curl command in the following way: curl -X POST 'https://xxxxxxxxxxxxx' --digest -u user:pass -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary $'{"from" : "xxxx", "msg" : "xxxxxx", "frag": null}' I...
asked by 13.06.2016 / 18:57
1
answer

Notice: Undefined index: Sending variable by post

I'm doing a nested select with connection to mysql and sending a data with the post method throws me the error of undefined variable, perform the tests and in fact nothing is being sent. I use Jquery to send this data in my case is the region id...
asked by 27.08.2018 / 17:18
1
answer

Save PHP if all fields are complete

I have a simple html form and a php code that checks that all required fields are complete. If they are all correct, they are saved in a .txt file, if they are not, it shows an error message. My question is how to make it just save the data i...
asked by 08.06.2018 / 04:53
0
answers

Send post data when redirecting with javascript

The form takes some data to obtain filtered products in an online store. If the form has data-container = '# results_store' the answer (products) must be painted on the div with id #results_shop. On the other hand if you do not have d...
asked by 12.12.2018 / 13:04