Jump to content

GetAsURL not working for me - 403 error


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

Recommended Posts

I don't know why but the following URL:

http://www.eatyourveggies.com.au/sendgrid/sendgrid.php
?api_user=<user>
&api_key=<key>
&html=
&text=test
&subject=test
&from=<email address>
&fromname=Dim
&to=<email address>
&toname=Adam

works fine when I use:

 

- paste it into the web browser

- use insert from URL script step

 

but not when I use

 

GetURLasText()

 

Error I get is:

 

java.io.IOException: Server returned HTTP response code: 403 for URL.... etc

Link to comment
Share on other sites

I was able to replicate your error here from our example file but was also able to use different URLs to get a successful return. 403 errors are kind of ambiguous so there could be any number of reasons why you got that forbidden error. That module is just trying to hit the URL using the URL class in java so since there is no browser to take care of any kind of overhead needed to access this site (hence why you can paste it into an address bar with no problems) you are given the 403 response from the server. This is just one of the many possibilities. I found an issue on stack overflow that may help http://stackoverflow.com/questions/13670692/403-forbidden-with-java-but-not-web-browser. From that post it looks like you can tweak the code in the GetURLasText module to work for you.

Link to comment
Share on other sites

This topic is 3403 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.