Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5103 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I am trying to post data to a url with multiple fields The post also has a login and password.

I think the post string should look like this:

http://smartenergy.vicihost.com/vicidial/non_agent_api.php?

function=add_lead&

vendor_lead_code=SEABOG007&

phone_number=1234567890&

first_name=JOSE&

last_name=LOERA&

address1=229 LA PAZ DR&

city=IMPERIAL&state=CA&

postal_code=92251&

country_code=USA&

[email protected]&

comments=sdsdssd&

(homeowner?)=YES&

(monthlyElecricBill?)=500&

user=4002&

pass=andresoro&

source=ceeintegrity&

list_id=5001&

campaign id=2001

When I try to enter this into the post to url function in Scriptmaster I get an error. Admittedly I am a beginner with ScriptMast so I appreciate any help anyone can provide me. Thanks, Andrew

Posted

In this case a GET request will suffice since the server will work/expects that, i.e. ScriptMaster get url as text with the below as its parameter, or simply a Filemaker WebViewer with:

http://smartenergy.vicihost.com/vicidial/non_agent_api.php?function=add_lead&vendor_lead_code=SEABOG007&phone_number=1234567890&first_name=JOSE&last_name=LOERA&address1=229+LA+PAZ+DR&city=IMPERIAL&state=CA&postal_code=92251&country_code=USA&email=loeraanimal%40aol.com&comments=sdsdssd&%28homeowner%3F%29=YES&%28monthlyElecricBill%3F%29=500&user=4002&pass=andresoro&source=ceeintegrity&list_id=5001&campaign+id=2001&

Note the spaces must be URL encoded but the & should not be. Since you posted the password to this site to the forum, you may want to change it.

I am trying to post data to a url with multiple fields The post also has a login and password.

I think the post string should look like this:

http://smartenergy.vicihost.com/vicidial/non_agent_api.php?

function=add_lead&

vendor_lead_code=SEABOG007&

phone_number=1234567890&

first_name=JOSE&

last_name=LOERA&

address1=229 LA PAZ DR&

city=IMPERIAL&state=CA&

postal_code=92251&

country_code=USA&

[email protected]&

comments=sdsdssd&

(homeowner?)=YES&

(monthlyElecricBill?)=500&

user=4002&

pass=andresoro&

source=ceeintegrity&

list_id=5001&

campaign id=2001

When I try to enter this into the post to url function in Scriptmaster I get an error. Admittedly I am a beginner with ScriptMast so I appreciate any help anyone can provide me. Thanks, Andrew

This topic is 5103 days old. Please don't post here. Open a new topic instead.

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

Important Information

By using this site, you agree to our Terms of Use.