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.

Featured Replies

I'm trying to get a token from an authorization server using cURL in Insert From URL. When I make the following request in Terminal

curl -i -X POST -d 'username=myaccountname&password=mypassword' https://authserver.com/login

I get the token back in the response header.

Since FileMaker doesn't support the --include (-i) option I haven't been able to figure out how to get the response header with the token.  Anyone have any ideas on how to accomplish this?

Thanks in advance!

-Kent

UPDATE:

Okay, I figured out I can get a response header by using the option --dump-header and setting it to a variable. The only problem now is that the token comes from a redirect location and I'm only getting the response header from the original URL. I'll keep working on it but I'll be happy to get whatever advice anyone can offer in the meantime. 

Edited by Kent Searight

  • Author

Never mind. I got it to work with the following cURL options.

-L -d 'username=myaccountname&password=mypassword' --cookie-jar $cookies

I'm curious though if anyone knows why FMI chose not to support the --include option. 

Edited by Kent Searight

  • 2 weeks later...
  • Newbies

How did you get response header with dump-header?

  • Author
7 hours ago, Wang said:

How did you get response header with dump-header?

Turned out I didn't need the headers. The result of --cookie-jar was all I needed. But if I'd wanted the headers too all I'd need to do is follow that option with a variable and it would write to that. Example: --dump-header $myVariable. 

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.