The Daily Click ::. Forums ::. Klik Coding Help ::. Get object?
 

Post Reply  Post Oekaki 
 

Posted By Message

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
26th April, 2011 at 19:07:40 -

Hi guys. I'm trying to run a PHP script on my server and send it POST commands. Ive heard the "get object" can do this, am i right?

If not is there an extension of some sort that can?

 
dont make me divide by zero...

Fifth

Quadruped

Registered
  07/05/2003
Points
  5818

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
26th April, 2011 at 19:44:53 -

I think it can.
The MooSock object can also do GET commands. I'd assume it can do POST, too?

Edited by Fifth

 
Go Moon!

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
26th April, 2011 at 19:48:24 -

Ive been having problems with the moosock object. I managed to get it to "GET" but struggled getting it to "POST".

Here is the text lines i am sending:

" POST /test/mysql_test/mysql.php HTTP/1.1 "
" HOST: www.zephni.com "
" Content-Type: application/x-www-form-urlencoded "
" Content-Length: "+Str$((Len(Edittext$( "Name" ))+Len(Edittext$( "Desc" ))+Len(Edittext$( "Content" ))+Len(Edit text$( "Type" ))+Len(Edit text$( "Subtype" ))))
""
" type="+Edit text$( "Type" )+"&subtype="+Edit text$( "Subtype" )+"&name="+Edittext$( "Name" )+"&desc="+Edittext$( "Desc" )+"&content="+Edittext$( "Content" )

The ones that look confusing are content length and the last one (the body) Just imagine them as:

" Content-Length: "256"
""
" variables=information "

The error I am getting is:

403 You do not have permission to access post on this server

But i'm not believing that?




 
dont make me divide by zero...

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
26th April, 2011 at 21:09:43 -

Get object can do it. You just use the "add POST data" action, then get.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
28th April, 2011 at 07:31:30 -

@Jon I'm sure I tried doing this before but couldn't get it to work! Cheers got it working in the end. woooo

 
dont make me divide by zero...
   

Post Reply



 



Advertisement

Worth A Click