javascript - Send HTTP Basic-Auth header info while submitting pdf to webserver -


i'm looking sample how send http basic-auth header info part of pdf submit via javascript.

i found following sample javascript code 1 of itext pdf examples:

this.submitform({   curl:"http://itextpdf.com:8080/book/request",   csubmitas: "html" }); 

are there other options send http username:password part of submitform() method?

thanks help.

i'm not expert on using forms pdfs, gather api documentation (page 345) , responses on adobe's forum doesn't possible.

you may take net.http.request though, 1 have oauthenticate argument (page 550 on api 8.1 documentation or here api 9.1) allow pass user , password http authentication or show dialog user can type in -- can modify http header.

performing post request way appropriate orequest (probably) end having result looking for.

note: realised pdf citing sdk 8.1, sdk 9.1 doesn't show authentication parameter submitform method either though.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -