ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth archive => Topic started by: PBR on November 20, 2014, 05:18:41 PM

Title: HTTP Post
Post by: PBR on November 20, 2014, 05:18:41 PM
Hey guys, I am converting some of my c# scripts over to pascal, and ran into a wall. I use HTTP Post to send a few variables to a php script on an apache web server. Really simple using basic authentication. I am running into issues using pascal though, where the api doesnt have any authentication functions built in. I tried using http://user:pass@www.server.com/post.php but am just getting an error similar to "your web browser doesn't know how to handle credentials". Anyone have any solutions or ideas?
Title: Re: HTTP Post
Post by: Masscre on November 23, 2014, 05:56:32 PM
Can you send commands outside of pascal to a separate program that will move these commands to a website possibly? I remember pascal having commands to move parameters to another program. I believe this will work but do not know if you want to go this route?
Title: Re: HTTP Post
Post by: Crome969 on November 23, 2014, 10:29:05 PM
i guess it works similar as easyuo.
http://wiki.easyuo.com/index.php?title=SendHeader

If not, i can look at source..
Title: Re: HTTP Post
Post by: PBR on November 24, 2014, 09:14:04 PM
Can you send commands outside of pascal to a separate program that will move these commands to a website possibly? I remember pascal having commands to move parameters to another program. I believe this will work but do not know if you want to go this route?
That was option B, to just save a text file with the parameters and build an app to watch that directory and upload the information in c#. I was just hoping to not have to worry about all that.

Crome, I tried building the login information into the header, but am having trouble getting the HTTP_Header function to work correctly. The API isn't complete in that respect, so any information you can provide would be greatly appreciated.