Jump to content

Recommended Posts

Posted

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)

Posted

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

Posted

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

Posted (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 by autoitxp
Posted

--> 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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...