I recently did a test on an unrelated website where I use PHP and CURL inside it to access a webpage with method POST.
Without any modifications, I noticed the server returning back a 100 continue status and a 200 OK status after. I suspect square might do the same with requests to the API.
So I played with CURL, and added a header “expect:” (with value being nothing) and the website responded much faster bypassing the 100 continue status.
When I read curl documentation online, they say the 100 continue status is supposed to help stop a client from performing a large upload even if the server returns a 4xx status code.
I’m curious for those experienced with square, should I attempt to dodge the 100 status codes and gain speed, or would you think there’s a high chance of data being lost in the process?
The amount of data I’m sending per POST is minimal (like maybe 8KB at most to store customer information and execute payment) and speed would make people happy.
3 posts - 2 participants