autoitxp Posted December 10, 2008 Share Posted December 10, 2008 im trying to send some data over url but its not sending any thing Sending this url link at browser works fine $do = "http://website.com/myphp.php?action=log&date="&@MDAY&"-"&@MON&"-"&@YEAR&" " &@HOUR&":"& @MIN InetGet($do, "", 1 , 1) Link to comment Share on other sites More sharing options...
ProgAndy Posted December 10, 2008 Share Posted December 10, 2008 InetGet doesn't work with parameters. try _InetGetSource instead if you want to download a file, check out WinHTTP.au3 (link in my sig) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Zedna Posted December 10, 2008 Share Posted December 10, 2008 Or use IE COM object (can be hidden). Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ProgAndy Posted December 10, 2008 Share Posted December 10, 2008 I think, that's too much for a simple call to a php log *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
autoitxp Posted December 11, 2008 Author Share Posted December 11, 2008 (edited) if you want to download a file, check out WinHTTP.au3 (link in my sig) no just need to use some parameters to update some log file _InetGetSource how to use with above link ? well i dont want to think about IE func's coz My Internet explorer in my Firewall block list I use FireFox in old version InetGet($do, "", 1 , 1) works with parameter i have remembered that i successfully used in some apps wat happend now ? Edited December 11, 2008 by autoitxp Link to comment Share on other sites More sharing options...
ProgAndy Posted December 11, 2008 Share Posted December 11, 2008 --> Help=? CODE_INetGetSource -------------------------------------------------------------------------------- Gets the source from an URL without writing a temp file. #include <INet.au3> _INetGetSource ( $s_URL ) Parameters $s_URL (The URL of the site.) eg 'www.autoitscript.com' Return Value Success: Returns the source code. Failure: 0 and sets @ERROR = 1 Example #include <INet.au3> ConsoleWrite(_INetGetSource('www.mypage.com?Parameter=45')) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
autoitxp Posted December 11, 2008 Author Share Posted December 11, 2008 nope not workin for me that above url posting nothing Link to comment Share on other sites More sharing options...
ProgAndy Posted December 11, 2008 Share Posted December 11, 2008 hmm.. strange. Normally, InetGet should work, too (some time ago, it did not work for me, but in this example it works) #include <Inet.au3> $URL = "http://www.snee.com/xml/crud/posttest.cgi" $URL &= '?lname=test' $s = _INetGetSource($URL) $r = StringRegExp($s,"QUERY_STRING(.*?)</p>",3) MsgBox(0, '_InetGetSource', $r[0]) InetGet($URL,@TempDir & "\~au3inettmp0076",1,0) $r = StringRegExp(FileRead(@TempDir & "\~au3inettmp0076"),"QUERY_STRING(.*?)</p>",3) MsgBox(0, 'InetGet', $r[0]) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes 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