New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BAD REQUEST #1473
Comments
Your code snippet as shown is incomplete so we can't easily run it and see for ourselves. You also didn't mention what your code actually sent or how it differed to what you expected. Can you elaborate? Also, how did your application do in regards to request headers compared to what you wanted it to send? (Tip: https://httpbin.org/ is a neat service to work out test shots against to make sure applications do exactly what we want them to...) |
This is an issue tracker, in the future please post your libcurl questions to curl-library. There are at least two problems with your code: First problem: Server returns error #include <sys/stat.h>
...
FILE *inpfile = fopen("input file","rb"); /* open the file in binary mode */
...
struct stat stbuf = { 0, };
if(fstat(fileno(inpfile), &stbuf) || stbuf.st_size < 0) {
/* file size unknown, bail out */
}
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)stbuf.st_size ); Note in Windows the file size in st_size is 32-bits by default and the value will be incorrect if the file size is larger. While I doubt that's a problem with your xml file, if you're sending other larger files in Windows use Second problem: Server returns error Also one thing that may be a problem is stating you accept gzip via |
well, I email my issue to the email you recommend and crickets nothing at all. |
That's the subscription confirmation address for curl-users I believe, I'd guess that address is automated to subscribe and unsubscribe. To e-mail curl-users after subscribing to that list you would e-mail |
SOAP CALL
I did this
ENDPOINT : http://www.odfl.com/TraceWebServiceWeb/services/Trace
REQUEST :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:trac="http://trace.odfl.com"><soapenv:Header/><soapenv:Body><trac:getTraceData><trac:pro>6916221036</trac:pro><trac:type>P</trac:type></trac:getTraceData></soapenv:Body></soapenv:Envelope>
USERNAME AND PASSWORD are place in the property see code example below
I expected the following
curl/libcurl version
CURL 7.54.0
[curl -V output]
operating system
MS SERVER 2012 R2
The text was updated successfully, but these errors were encountered: