Ontosy Posted October 15, 2006 Share Posted October 15, 2006 (edited) I'm trying to use LibCurl from:http://curl.haxx.se/download.html Edited October 17, 2006 by Ontosy Link to comment Share on other sites More sharing options...
PaulIA Posted October 17, 2006 Share Posted October 17, 2006 I'm trying to use LibCurl from:http://curl.haxx.se/download.htmlYou're not giving us a whole lot to go on. What exactly do you want help with? Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
FuryCell Posted October 17, 2006 Share Posted October 17, 2006 (edited) If your trying to use TCP or UDP there are built-in functions in the latest production version. Also for FTP check out these FTP UDFs. Edited October 17, 2006 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Ontosy Posted May 17, 2007 Author Share Posted May 17, 2007 Up Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 17, 2007 Share Posted May 17, 2007 UpDown Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Sergy Posted January 17, 2009 Share Posted January 17, 2009 (edited) can someone show example of using libcurl.dll for form posting? non-lib looks like this: Local $UploadResult = Run('curl.exe -F upload=yes -F F=@"' & $PictureToSend & '" -F CP=yes ' & $MaxPictureSize & '-F Submit="Upload" http://www.sitename.com/action.aspx', @ScriptDir, @SW_HIDE,2+4) show me code with DLL-call please... Edited January 17, 2009 by Sergy Link to comment Share on other sites More sharing options...
Sergy Posted January 18, 2009 Share Posted January 18, 2009 i try this (libcurl.dll from link above): $PictureToSend = "folder.jpg" $MaxPictureSize = 300 $dll = DllOpen ("libcurl.dll") DllCall ($dll, "int", "curl_easy_init") DllCall ($dll, "int", "curl_easy_setopt", "CURLOPT_URL", "http://www.site.com/action.aspx") DllCall ($dll, "int", "curl_formadd", "CURLFORM_COPYNAME", "upload", "CURLFORM_COPYCONTENTS", "yes") DllCall ($dll, "int", "curl_formadd", "CURLFORM_COPYNAME", "CP", "CURLFORM_COPYCONTENTS", $MaxPictureSize) DllCall ($dll, "int", "curl_formadd", "CURLFORM_COPYNAME", "F", "CURLFORM_FILECONTENT", $PictureToSend) DllCall ($dll, "int", "curl_easy_setopt", "CURLOPT_HTTPPOST", "post") $result = DllCall ($dll, "str", "curl_easy_perform") when execute curl_easy_perform AutoIt crashed. any idea? Link to comment Share on other sites More sharing options...
FuryCell Posted October 10, 2009 Share Posted October 10, 2009 i try this (libcurl.dll from link above): $PictureToSend = "folder.jpg" $MaxPictureSize = 300 $dll = DllOpen ("libcurl.dll") DllCall ($dll, "int", "curl_easy_init") DllCall ($dll, "int", "curl_easy_setopt", "CURLOPT_URL", "http://www.site.com/action.aspx") DllCall ($dll, "int", "curl_formadd", "CURLFORM_COPYNAME", "upload", "CURLFORM_COPYCONTENTS", "yes") DllCall ($dll, "int", "curl_formadd", "CURLFORM_COPYNAME", "CP", "CURLFORM_COPYCONTENTS", $MaxPictureSize) DllCall ($dll, "int", "curl_formadd", "CURLFORM_COPYNAME", "F", "CURLFORM_FILECONTENT", $PictureToSend) DllCall ($dll, "int", "curl_easy_setopt", "CURLOPT_HTTPPOST", "post") $result = DllCall ($dll, "str", "curl_easy_perform") when execute curl_easy_perform AutoIt crashed. any idea? Perhaps you'd have more success with the command line version? I've used it in a script before and it worked great. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now