Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GetAsURL not working for me - 403 error

Featured Replies

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

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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.