Sign in to follow this  
Followers 0
autoitxp

InetGet

8 posts in this topic

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)

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

nope not workin for me that above url posting nothing

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0