|
|
#1 |
|
Junior Member
Join Date: May 2007
Posts: 26
|
inetc::post?
Hi,
I simply want to open this website: "www.example.com/index.php?username=$username" so I am trying to do it using the inetc-component, this is my source: ... inetc:: post "http://www.example.com/index.php?username=$username" "http://www.example.com/index.php?" Pop $0 MessageBox MB_OK $0 The messagebox says: "connecting", but as I can see on the server, it doesn't work, when using "get" instead of "post" it gives the error message: "File Write Error", but it seems to work as I can see on the server. So I need to make it say "OK" when it worked on the server, any idea? Thanks! |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
|
Minimum parameters set for post and get:
code: I don't know what means 'simply open'. If you want open browser window use ExecShell. |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
code: Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
|
BTW 'post' example with nsi and php files included into inetc.zip
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2007
Posts: 26
|
Hi,
thanks Afro UK and all others, I got it running now. My source: inetc::post "username=$username" "http://www.example.com/index.php" "$PLUGINSDIR\output.txt" Pop $0 StrCmp $0 "OK" sdone ;Could not upload Abort sdone: |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: May 2007
Posts: 26
|
One additional question: Where do I need to place the /SILENT flag (to not display progress bar)? I tried this, but didn't work:
inetc:: post "username=$username" "http://www.example.com/index.php" /SILENT |
|
|
|
|
|
#7 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Use after inetc::post and before any other parameters.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: May 2007
Posts: 26
|
Hm, strange. It displays anyway and also shows an error (my error message: "URL Parts Error"), when using this code:
inetc:: post /SILENT "username=$username" "http://www.example.com/index.php" or this: inetc:: post SILENT "username=$username" "http://www.example.com/index.php" Any idea? |
|
|
|
|
|
#9 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Where has the local file parameter gone from your code?
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: May 2007
Posts: 26
|
Sorry, forgot to copy it:
inetc:: post SILENT "username=$username" "http://www.example.com/index.php" "$PLUGINSDIR\output.txt" |
|
|
|
|
|
#11 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
|
ugly, but so:
code: |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: May 2007
Posts: 26
|
Hi, yes this is working. Thanks a lot!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|