Jump to content
Sign in to follow this  
truelifeajf

GetAsURL not working for me - 403 error

This topic is 1977 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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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