40,467 questions
Advice
0
votes
3
replies
96
views
How do you handle POST requests in Django
How do you handle POST requests in Django on PythonAnywhere? The help pages only seem to cover GET requests (which work fine). Got various errors, currently 'Forbidden (Referer checking failed - no ...
Advice
0
votes
3
replies
129
views
How to post multiple serial numbers from file to a website
So here's the deal. At work, I test a lot of decoders (about 400 a day). Everything is automated for now, but in two weeks we're changing the software. After the change, we'll have to manually scan ...
0
votes
1
answer
47
views
How to safely pass credentials from n8n to browserless puppeteer script?
In a self hosted n8n using browserless, both running in separate docker containers two sets of credentials need to be passed from n8n to browserless:
token to authenticate the request to browserless
...
1
vote
2
answers
101
views
jQuery Ajax POST operation doesn't pass data
I have this script on my main page. There are quite a few lines that are not directly relevant to the Ajax request but I've left them in in case that are having some unwanted effect.
$(document).ready(...
0
votes
0
answers
31
views
CCAvenue encResp not received in ASP.NET WebForms; POST converted to GET
I'm integrating CCAvenue payment gateway with my ASP.NET WebForms application (.NET 4.8).
The payment request works fine, but when CCAvenue redirects back to my response URL:
https://xyz/...
0
votes
2
answers
108
views
Httpclient in java send a POST request
I want to make an API caller with all CRUD methods using java
I want to be able to get all the data with json then parse it and only get data with it's unique id
The thing that I can't figure out is ...
Best practices
0
votes
0
replies
32
views
Post to a FB Page on behalf of a client who is an admin
I have a web app that has a button that used to work. It sent the user to their Facebook "Page" page along with content for them to post. That has stopped working recently.
I need to know ...
0
votes
1
answer
114
views
Spring Boot 3 + Spring Security 6: 403 Forbidden when sending POST from Postman (stateless API)
I’m testing a POST endpoint of a stateless API (no sessions/forms) and Postman returns 403 Forbidden. I suspect CSRF, but I’m not sure how to configure it correctly in Security 6 for a stateless REST ...
-2
votes
1
answer
113
views
Libwebsockets client not see response on POST request
Minimal client (code below) send POST request, but not see response from the server. After LWS_CALLBACK_CLIENT_HTTP_WRITEABLE client waiting about 15 seconds and reset session. I see server answer in ...
0
votes
0
answers
97
views
Blazors <EditForm> component cannot be used to submit login forms on SSR pages. [.NET 9.0 | InteractiveAuto solution]
I am using .NET 9.0, my statically rendered login page results in an error when it's submitted:
A valid antiforgery token was not provided with the request. Add an antiforgery token, or disable ...
0
votes
1
answer
141
views
HTTP Request Through Ncat in Powershell Windows
I am using Ncat to send raw HTTP requests to the backend JS server. I will add here the backend and frontend files. We write ourselves, which is the goal of the task.
I have installed Ncat and I send ...
-2
votes
1
answer
124
views
How to change camelCase to snake_case in the body of a request?
I want to transform camelCase to snake_case and still allowing snake_case in the body of a POST request.
I mean, If the request has a camelCase body i want to transform to snake_case and if the ...
0
votes
0
answers
56
views
Power Automate API to Mulesoft IDP Document Action base64ToBinary Error
I'm trying to create a Power Automate Flow in cloud that sends a PDF to Mulesoft's IDP. I already created a document action on Mulesoft's site so I have the POST URI ready to go.
For some reason, when ...
0
votes
1
answer
87
views
HTML Post array from single hidden input passes an array but PHP not processing it correctly [duplicate]
I have read quite a few posts on this, most provide various solutions but none are really addressing the underlying "why"? I can't figure out PHPs behavior when processing a single $_POST ...
0
votes
1
answer
64
views
Blazor server connection disconnected error when sending Excel file as streamcontent to ASP.NET Core Minimal API endpoint
I am using Telerik Blazor TelerikFileSelect component to select an excel file and send it as a StreamContent to ASP.NET Core Minimal API endpoint. I do not see any issues when I send a 13 KB Excel ...
0
votes
1
answer
28
views
Cannot POST /put-crud
I am trying to build a REST API out of Nodejs
this is the form to edit user information
<form action="/put-crud" method="POST">
<div class="form-row">
...
1
vote
1
answer
43
views
Error 404 when sending data to app.py through Flask website
My website is supposed to send data from a form through my app.py, which then forwards it to my database. In the terminal, I can see that it sends the POST to the app, but then the website itself 404'...
0
votes
1
answer
118
views
How to send a POST request with JSON body using Total.js Flow interface?
I'm using the Total.js Flow interface (no-code/low-code) and I need to send a POST request to an API endpoint with a JSON body.
I tried using the HTTP and HTTP Request component, but I can't find an ...
0
votes
1
answer
87
views
How can i have spa application with form based on post working?
So i have spa app inside of wordpress it just loads php files in my theme:
Functions.php
add_action('wp_ajax_wczytaj_sekcje_profilu', 'ajax_wczytaj_sekcje_profilu');
function ...
1
vote
1
answer
51
views
Django DRF, Cannot reproduce POST request using APIClient and APITestCase, payload fields are removed
I have the following setup in Django DRF:
class TagSerializer(serializers.Serializer):
id = serializers.UUIDField(read_only=True)
name = serializers.CharField(required=True)
style = ...
1
vote
1
answer
75
views
Django DRF, create an Item with associated tags whether they exist or not
I have the following create function for ItemSerializer class. It aims to create new Item with tags, creating tags on the fly if they does not exist or getting them if they exist.
class TagSerializer(...
0
votes
0
answers
31
views
Salesforce POST Requests Failing in Microservice in a Specific Environment
I'm doing an implementation of salesforce with an external company, and after successfully completing the testing phase, a problem has arisen in production with the microservice in the ECS service of ...
0
votes
1
answer
85
views
Include an Id in a HTTP POST request body that supports wildcard search
There is a java, REST API based web application which uses HTTP POST request to search a user specific parameters including wildcards. The same application uses GET request to get specific resources ...
0
votes
0
answers
61
views
Sending an XML file in a multicontent POST file using .NET
I've run into some trouble trying to send a multi-content POST from a .NET application to another .NET application. In this particular example, I am receiving an XML document in a string, and then ...
1
vote
2
answers
86
views
Wordpress Plugin PHP Multiple Forms in a Single Page Empty Post Request
I'm building a WordPress plugin that has a page that consists of multiple forms. Each form is a step. Here's my form-handler:
<?php
class Form_Handler
{
public function init_funnel()
{
...
0
votes
1
answer
141
views
Hubspot Form Submission returning 415 Unsupported Media Type
I have a simple HTML signup form posting to Hubspot. When I put the form in my website (via WordPress) it renders fine. When I enter values and press submit, the request is made, but the response ...
0
votes
1
answer
129
views
Inclusion of @FormDataParam annotation(s) results in 400 Bad Request (Jersey 3.1.10, Java 17, Tomcat 10) for multipart/form-data requests
I have an existing REST API (has been around for years now and I'm the original author) which has multiple end-points. I just added a new end-point for uploading files. The end-point method resource ...
1
vote
2
answers
152
views
TryUpdateModelAsync returns false when model and Linq are correct
I'm having a weird one here.
I'm doing Microsoft's Razor and EF tutorial and I don't know what's wrong with this code:
public class Student
{
public int ID { get; set; }
public string LastName ...
0
votes
2
answers
92
views
Non Expected Format of JSON Received By Express App (Sent By Fetch API)
I am new to nodejs/express and I have stumbled across a seemingly simple, yet annoying, problem in a web app I am developing. Essentially, I am trying to send a post request to an Express App that ...
-1
votes
1
answer
41
views
Post http does not send it body as part of request to my server
I built a weather app it works fine on my local machine but after deploying the server to railway and frontend to netlify the http post method no longer send the body just the headed
I mean when i try ...
0
votes
1
answer
67
views
Laravel 10: getting 404 Not Found on a POST route when using Form Request Validation
Within a Laravel project, I want to create a POST /movies route associated with a controller that has been created with its model:
sail artisan make:model --controller --api --requests -- Movie
which ...
3
votes
1
answer
196
views
R shiny - Return json from server.R to POST request
I'm trying to use shiny to mimic an API.
I've got a shiny app that reads parameters in the url (with parseQueryString(session$clientData$url_search)), computes a map based on those parameters, and ...
0
votes
1
answer
85
views
How do I pass form data to the next form page after sending to a php mailto page?
I have a few forms on my website which I need site visitors to submit in sequence.
'form1' sends the user data to the (php mailto) form mailer.
The header(location) of the form mailer then directs the ...
0
votes
1
answer
262
views
Post Request Not working for scraping a website
Step 1: Send a GET request to fetch the page and extract hidden form values
We'll first send a GET request to the page and extract necessary hidden form values like __VIEWSTATE, __VIEWSTATEGENERATOR, ...
1
vote
1
answer
56
views
Manually access content from Form fields in Django
I'm in a position where I would like to submit content to a form that is not defined in a Forms class.
For example, in my forms.py:
class AnalyseForm(forms.Form):
TYPES = (('a', 'Type A'),('b', '...
0
votes
2
answers
48
views
Scrapy Splash Form Request method is not POST
I use this request to do form request using scrapy splash, but it said the method was NONE and Splash can only process GET and POST
yield SplashFormRequest(url,
args={'wait': 5,
...
0
votes
1
answer
355
views
How to Scrape Data from Bayut (DLD-Validated Properties) Without Getting 401 Error?
I'm scraping real estate data from Bayut using Scrapy but can't extract thethe green tick (DLD-validated info)
The information is fetched via a POST API with basic authentication.
Calling the API in ...
-1
votes
1
answer
220
views
httpx Library vs curl program
I am trying to use the httpx library to POST a file through a website provided API. The API requests some additional headers.
Here is my Pyhton script:
#!/usr/bin/python3
import httpx
files = {'file':...
-1
votes
1
answer
39
views
window.postMessage({ trigger: "startCounting" }, "*"); does not trigger
i have a rolodex counter that i need at times to trigger the animation via posting a message
it does not work, instead of the two digits animating counting, only a single digits flickers without ...
1
vote
1
answer
3k
views
Post multipart/form-data using pythons httpx library only form data
How do I send a POST with python HTTPX that will minic a CURL POST that works? This is to an opengear rest API. I believe it has to do something with the data field of the post.
This is the working ...
0
votes
1
answer
405
views
Form Validation Responses with Inertia and Laravel 11
I'm having a form like:
<form @submit.prevent="submitForm">
<div>
<span v-if="form.errors.zipCode">{{ form.errors.zipCode }}</span>
<...
0
votes
2
answers
72
views
XmlHTTPRequest not returning Error Status from server after POST
I have been writing an embedded webserver on a small micro. I have many things working and can serve up webpages, etc. One page allows the user to upload a new firmware file. I have this working ...
0
votes
0
answers
60
views
retrive form data in controller method in codeigniter 4 and routs requirements
i have a form submission in my view page as follow:
<form class="propertyForm" method="POST" action="<?= url_to('props.estimate.price'); ?>">
<...
1
vote
0
answers
20
views
ruby-on-rails Why doesn't the delete function work?
The article deletion function doesn't work. I tried to fix it but it didn't work.
Details of the source code can be found at
https://github.com/chikashishirozu/tweet_app.
config/routes.rb
Rails....
0
votes
0
answers
35
views
How to always get the status of the robot when using POST request and not make the app crashing
I created a Windows application in Python and the Kivy framework. The main feature of the app is to post the request on the server in API through a button. The server will send the task to a robot and ...
1
vote
1
answer
90
views
Submit form data using WinInet (C++)
I'm a professional lawyer and an amateur programmer (mainly C++). On a daily basis, I must access the same website and search for tons of court cases (plain text). Recently, I came up with the idea of ...
0
votes
1
answer
56
views
Apache: WSGI not routing
I am trying to use WSGI with a URL that I need to be able to POST to under Apache 2 (using flask). I am able to run my .wsgi independently of Apache (python cfg.wsgi) and it handles GET and POST ...
0
votes
0
answers
26
views
How to know in advance what format/columns POST API is expecting?
I am trying to send some data to an API.
All information I have is:
ImportUsersFile
Verbs
POST
Requires authentication
False
Parameters
jobName: string
token: CancellationToken
The information is ...
0
votes
0
answers
143
views
NodeMCU ES8266CH340 Send POST request with WifiClientSecure and SSL fingerprint is failed. Returned httpCode -1
I've NodeMCU ESP8266CH340. Unable to verify fingerprint of SSL (Issued by Google Trust) with WifiClientSecure. I don't want to set client.setInsecure(); or bypass SSL verification. POST request failed ...
-6
votes
1
answer
167
views
$_POST variable from request contains optional instead of string in PHP [closed]
The use case is a user/client sends a request to a server running PHP. I am trying to write the PHP code on the server e.g. an API endpoint to process the request.
I have existing production PHP code ...