-
Notifications
You must be signed in to change notification settings - Fork 72
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
The POST method not working CurlSharp #1
Comments
Are you running Windows or Mono Linux/OSX? All the examples you've mentioned are working fine on my end. (Windows 8.1 x64). |
Run on a Windows 2008 Standard R2 - 64 bit and Mono 3.8 1> ------ Build started: Project: CurlSharp, Configuration: Debug Any CPU ------ I run the test program, and download the code works. POST does not work send in the 32 Bit and 64 Bit |
Hi. This is my complete C# cod (I've change domain only):
And here are the results:
The POST receiver: $value) { echo "$header: $value\n"; } ?> As you can see only HttpWebRequest (TEST 3) sent POST data. |
@mangusta @http200it The POST bug has been fixed for WIN64. Please see the newly added EasyPost sample application. Expected outputs: 64-bit build:
32-bit build utilizing libcurlshim.dll:
|
Thank you very much for improving CurlSharp 64 bit for POST - PostFields. |
@http200it 32-bit build of CurlSharp uses the libcurlshim.dll helper library which was originally authored by Jeff Phillips. Unfortunately, this library was not ported to WIN64. I'm of little help in this regard as my C and assembly language skills are rusty. The |
@ masroore - It is important that it works the ability to send POST data under Linux 64 Bit Net MONO. The primary concern ;) |
@http200it @mangusta Now the 64-bit Output from the EasyPost sample:
|
It works by sending a POST easy.PostFields and easy.HttpPost on Windows 64 Bit and Linux Debian 7 64 Bit - Mono 3.8. Once again, thank you very much for improving the code. @masroore - you are great ! -> Thank you :) |
@http200it Thanks for confirming the fix on 64-bit Linux. I confirm the PostFields and HttpPost features work on OS X Xamarin as well. |
Even setting the parameters works and does not work. I think it should work interchangeably so and so. //easy.UserAgent = "Do UserAgent"; // Works //easy.Proxy = "xxx.xxx.xxx.xxx:21320"; // Works //easy.PostFields = postData; // Works :) //easy.Encoding = "gzip, deflate"; // Works easy.FollowLocation = true; // Works or At the time, please check yourself/ |
@http200it Thanks for reporting the bug. String options were not set properly in the setObjectOptions() method. |
@masroore - Now the function easy.SetOpt (CurlOption. **, ***); works as it should. |
@masroore thank you very much for your intervention and for whole great job! It's working now. All the best! |
Love curl and this .NET port. However, I try to set option but it always shows content-type: |
@hieple Are you trying to set the content-type header? You can use the easy.ContentType = "application/soap+xml; charset=utf-8"; FYI, |
But easy.ContentType is read-only |
@hieple I stand corrected, var headers = new CurlSlist();
headers.Append("Content-Type: application/soap+xml; charset=utf-8");
easy.HttpHeader = headers; |
Hello again. It does not work to send a file or send wrong? My test code: My OUT: |
The POST method not working CurlSharp. The same does not operate
easy.PostFields> FileUpload.cs not working
easy.HttpPost> BookPost.cs not working
64 Bit
The text was updated successfully, but these errors were encountered: